diff options
author | David Pursehouse <david.pursehouse@gmail.com> | 2019-08-12 19:37:11 -0400 |
---|---|---|
committer | Gerrit Code Review @ Eclipse.org <gerrit@eclipse.org> | 2019-08-12 19:37:11 -0400 |
commit | cb53db4bffd84275b2bbba6952050922ed42c9c5 (patch) | |
tree | e5c68de7fe15172e590cfc99885ec5a08c4f710f /org.eclipse.jgit.test/tst/org/eclipse | |
parent | 9b4a55c0b65074e6abec4b9aff1b602ee6a976b9 (diff) | |
parent | 69ce7fc7fb18ef82200e111344eabd205d45b5cf (diff) | |
download | jgit-cb53db4bffd84275b2bbba6952050922ed42c9c5.tar.gz jgit-cb53db4bffd84275b2bbba6952050922ed42c9c5.zip |
Merge "Ensure FSTest uses MockSystemReader" into stable-5.1
Diffstat (limited to 'org.eclipse.jgit.test/tst/org/eclipse')
-rw-r--r-- | org.eclipse.jgit.test/tst/org/eclipse/jgit/util/FSTest.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/util/FSTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/util/FSTest.java index 2054e1efa8..3e1202cde8 100644 --- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/util/FSTest.java +++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/util/FSTest.java @@ -65,6 +65,7 @@ import java.util.Set; import java.util.concurrent.TimeUnit; import org.eclipse.jgit.errors.CommandFailedException; +import org.eclipse.jgit.junit.MockSystemReader; import org.eclipse.jgit.junit.RepositoryTestCase; import org.eclipse.jgit.lib.RepositoryCache; import org.junit.After; @@ -77,6 +78,7 @@ public class FSTest { @Before public void setUp() throws Exception { + SystemReader.setInstance(new MockSystemReader()); trash = File.createTempFile("tmp_", ""); trash.delete(); assertTrue("mkdir " + trash, trash.mkdir()); |