|
|
@ -65,6 +65,7 @@ import java.util.Set; |
|
|
|
import java.util.concurrent.TimeUnit; |
|
|
|
import java.util.concurrent.TimeUnit; |
|
|
|
|
|
|
|
|
|
|
|
import org.eclipse.jgit.errors.CommandFailedException; |
|
|
|
import org.eclipse.jgit.errors.CommandFailedException; |
|
|
|
|
|
|
|
import org.eclipse.jgit.junit.MockSystemReader; |
|
|
|
import org.eclipse.jgit.junit.RepositoryTestCase; |
|
|
|
import org.eclipse.jgit.junit.RepositoryTestCase; |
|
|
|
import org.eclipse.jgit.lib.RepositoryCache; |
|
|
|
import org.eclipse.jgit.lib.RepositoryCache; |
|
|
|
import org.junit.After; |
|
|
|
import org.junit.After; |
|
|
@ -77,6 +78,7 @@ public class FSTest { |
|
|
|
|
|
|
|
|
|
|
|
@Before |
|
|
|
@Before |
|
|
|
public void setUp() throws Exception { |
|
|
|
public void setUp() throws Exception { |
|
|
|
|
|
|
|
SystemReader.setInstance(new MockSystemReader()); |
|
|
|
trash = File.createTempFile("tmp_", ""); |
|
|
|
trash = File.createTempFile("tmp_", ""); |
|
|
|
trash.delete(); |
|
|
|
trash.delete(); |
|
|
|
assertTrue("mkdir " + trash, trash.mkdir()); |
|
|
|
assertTrue("mkdir " + trash, trash.mkdir()); |
|
|
|