From a3e480e28aa25dbbe341b10cfeb3fb1cfa625d18 Mon Sep 17 00:00:00 2001 From: Joel Johnson <joel.johnson@issinc.com> Date: Mon, 29 Jun 2015 12:17:11 -0400 Subject: [PATCH] typo: instantiate log message --- src/test/java/com/gitblit/tests/JGitUtilsTest.java | 11 ++++++++++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/src/test/java/com/gitblit/tests/JGitUtilsTest.java b/src/test/java/com/gitblit/tests/JGitUtilsTest.java index 68cb4f8..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" }); @@ -520,7 +529,7 @@ // grab the commits since 2008-07-15 commits = JGitUtils.getRevLog(repository, null, new SimpleDateFormat("yyyy-MM-dd").parse("2008-07-15")); - assertEquals(19, commits.size()); + assertEquals(12, commits.size()); repository.close(); } -- Gitblit v1.9.1