summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.test
diff options
context:
space:
mode:
authorRobin Rosenberg <robin.rosenberg@dewire.com>2011-01-29 17:52:12 -0500
committerCode Review <codereview-daemon@eclipse.org>2011-01-29 17:52:12 -0500
commit9ffcf2a8b3cb49c445fabd011b26a36e622a033c (patch)
tree930526e957ff205047d51d9f688f7891fb0e96e4 /org.eclipse.jgit.test
parent9fbda2239202ca9d3a20c84d7326f47c667aa920 (diff)
parenta6e3f5306966e4befde17358c79941bc5849f826 (diff)
downloadjgit-9ffcf2a8b3cb49c445fabd011b26a36e622a033c.tar.gz
jgit-9ffcf2a8b3cb49c445fabd011b26a36e622a033c.zip
Merge changes I3a74cc84,I219f864f
* changes: [findbugs] Do not ignore exceptional return value of createNewFile() Do not create files to be updated before checkout of DirCache entry
Diffstat (limited to 'org.eclipse.jgit.test')
-rw-r--r--org.eclipse.jgit.test/tst/org/eclipse/jgit/treewalk/filter/IndexDiffFilterTest.java10
1 files changed, 4 insertions, 6 deletions
diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/treewalk/filter/IndexDiffFilterTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/treewalk/filter/IndexDiffFilterTest.java
index 542e169d73..4c103c83da 100644
--- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/treewalk/filter/IndexDiffFilterTest.java
+++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/treewalk/filter/IndexDiffFilterTest.java
@@ -56,6 +56,7 @@ import org.eclipse.jgit.lib.RepositoryTestCase;
import org.eclipse.jgit.revwalk.RevCommit;
import org.eclipse.jgit.treewalk.FileTreeIterator;
import org.eclipse.jgit.treewalk.TreeWalk;
+import org.eclipse.jgit.util.FileUtils;
import org.junit.Before;
import org.junit.Test;
@@ -537,8 +538,7 @@ public class IndexDiffFilterTest extends RepositoryTestCase {
private void createEmptyFolder() throws Exception {
File path = new File(db.getWorkTree(), FOLDER);
- path.mkdir();
- assertTrue(path.isDirectory());
+ FileUtils.mkdir(path);
}
private RevCommit createEmptyFolderAndCommit() throws Exception {
@@ -548,14 +548,12 @@ public class IndexDiffFilterTest extends RepositoryTestCase {
private void createEmptyFolderUntracked() throws Exception {
File path = new File(db.getWorkTree(), UNTRACKED_FOLDER);
- path.mkdir();
- assertTrue(path.isDirectory());
+ FileUtils.mkdir(path);
}
private void createEmptyFolderIgnored() throws Exception {
File path = new File(db.getWorkTree(), IGNORED_FOLDER);
- path.mkdir();
- assertTrue(path.isDirectory());
+ FileUtils.mkdir(path);
writeTrashFile(GITIGNORE, GITIGNORE + "\n" + IGNORED_FOLDER + "/");
}