aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.test/tst/org/eclipse/jgit/dircache
diff options
context:
space:
mode:
authorRobin Rosenberg <robin.rosenberg@dewire.com>2011-09-25 00:17:19 +0200
committerRobin Rosenberg <robin.rosenberg@dewire.com>2011-09-25 00:17:19 +0200
commitb4112c17484d6a54e956807298593847da079577 (patch)
tree0acc5f24e7ad98144a393d7be206642be030a952 /org.eclipse.jgit.test/tst/org/eclipse/jgit/dircache
parent19a366d532f829bb4955f7344b68d9b2c9514fc7 (diff)
downloadjgit-b4112c17484d6a54e956807298593847da079577.tar.gz
jgit-b4112c17484d6a54e956807298593847da079577.zip
Fix DirCache,getEntriesWithin for empty string arguemnt
Change-Id: I0bea130df611de3ef8c9251093b11c62b5442cd1
Diffstat (limited to 'org.eclipse.jgit.test/tst/org/eclipse/jgit/dircache')
-rw-r--r--org.eclipse.jgit.test/tst/org/eclipse/jgit/dircache/DirCacheFindTest.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/dircache/DirCacheFindTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/dircache/DirCacheFindTest.java
index e861bed178..a4bb559da9 100644
--- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/dircache/DirCacheFindTest.java
+++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/dircache/DirCacheFindTest.java
@@ -88,6 +88,13 @@ public class DirCacheFindTest extends RepositoryTestCase {
for (int i = aFirst, j = 0; i <= aLast; i++, j++)
assertSame(ents[i], aContents[j]);
}
+ {
+ final DirCacheEntry[] aContents = dc.getEntriesWithin("");
+ assertNotNull(aContents);
+ assertEquals(ents.length, aContents.length);
+ for (int i = 0; i < ents.length; i++)
+ assertSame(ents[i], aContents[i]);
+ }
assertNotNull(dc.getEntriesWithin("a."));
assertEquals(0, dc.getEntriesWithin("a.").length);