From 18231200d33b62d2d96286b9bbd84476df5d9189 Mon Sep 17 00:00:00 2001 From: Morten Bøgeskov <source@bogeskov.dk> Date: Mon, 15 Jun 2015 12:51:52 -0400 Subject: [PATCH] Added git.sshDisplay{Port|Host} to hide port forward. --- src/test/java/com/gitblit/tests/JGitUtilsTest.java | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/src/test/java/com/gitblit/tests/JGitUtilsTest.java b/src/test/java/com/gitblit/tests/JGitUtilsTest.java index c2cfb33..2cf4a5a 100644 --- a/src/test/java/com/gitblit/tests/JGitUtilsTest.java +++ b/src/test/java/com/gitblit/tests/JGitUtilsTest.java @@ -476,6 +476,15 @@ } @Test + public void testFilesInPath2() throws Exception { + assertEquals(0, JGitUtils.getFilesInPath2(null, null, null).size()); + Repository repository = GitBlitSuite.getHelloworldRepository(); + List<PathModel> files = JGitUtils.getFilesInPath2(repository, null, null); + repository.close(); + assertTrue(files.size() > 10); + } + + @Test public void testDocuments() throws Exception { Repository repository = GitBlitSuite.getTicgitRepository(); List<String> extensions = Arrays.asList(new String[] { ".mkd", ".md" }); -- Gitblit v1.9.1