diff options
author | Christian Halstrick <christian.halstrick@sap.com> | 2011-09-26 04:27:54 -0400 |
---|---|---|
committer | Code Review <codereview-daemon@eclipse.org> | 2011-09-26 04:27:54 -0400 |
commit | d306c35cea5ee35e04f8cd5e27ed2b70490d8458 (patch) | |
tree | 6c90924e43f12a1cf34a4df89f220364aca90896 /org.eclipse.jgit.test | |
parent | 23bba6fb488d5ef307fd323e86e5b9214f48ecd5 (diff) | |
parent | b4112c17484d6a54e956807298593847da079577 (diff) | |
download | jgit-d306c35cea5ee35e04f8cd5e27ed2b70490d8458.tar.gz jgit-d306c35cea5ee35e04f8cd5e27ed2b70490d8458.zip |
Merge "Fix DirCache,getEntriesWithin for empty string arguemnt"
Diffstat (limited to 'org.eclipse.jgit.test')
-rw-r--r-- | org.eclipse.jgit.test/tst/org/eclipse/jgit/dircache/DirCacheFindTest.java | 7 |
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); |