summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2012-08-01 09:48:06 -0400
committerJames Moger <james.moger@gitblit.com>2012-08-01 09:48:06 -0400
commit65f55eee1c41a9cdfec96dc4310efcc6e57df97f (patch)
treebd5d6d65af03f750f3b984b5ccf7f56cb95d66fd /tests
parent874be0d933eb52d548a07b67d112a0975e900b14 (diff)
downloadgitblit-65f55eee1c41a9cdfec96dc4310efcc6e57df97f.tar.gz
gitblit-65f55eee1c41a9cdfec96dc4310efcc6e57df97f.zip
Add recursion depth control for repository search (issue 103)
Diffstat (limited to 'tests')
-rw-r--r--tests/com/gitblit/tests/JGitUtilsTest.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/com/gitblit/tests/JGitUtilsTest.java b/tests/com/gitblit/tests/JGitUtilsTest.java
index 316d1368..addc9347 100644
--- a/tests/com/gitblit/tests/JGitUtilsTest.java
+++ b/tests/com/gitblit/tests/JGitUtilsTest.java
@@ -67,11 +67,11 @@ public class JGitUtilsTest {
@Test
public void testFindRepositories() {
- List<String> list = JGitUtils.getRepositoryList(null, false, true);
+ List<String> list = JGitUtils.getRepositoryList(null, false, true, -1);
assertEquals(0, list.size());
- list.addAll(JGitUtils.getRepositoryList(new File("DoesNotExist"), true, true));
+ list.addAll(JGitUtils.getRepositoryList(new File("DoesNotExist"), true, true, -1));
assertEquals(0, list.size());
- list.addAll(JGitUtils.getRepositoryList(GitBlitSuite.REPOSITORIES, false, true));
+ list.addAll(JGitUtils.getRepositoryList(GitBlitSuite.REPOSITORIES, false, true, -1));
assertTrue("No repositories found in " + GitBlitSuite.REPOSITORIES, list.size() > 0);
}