]> source.dussan.org Git - gitblit.git/commitdiff
Fix revLog test that broke due to changes in the hello-world repository.
authorFlorian Zschocke <florian.zschocke@devolo.de>
Mon, 10 Jun 2019 20:11:35 +0000 (22:11 +0200)
committerFlorian Zschocke <florian.zschocke@devolo.de>
Mon, 10 Jun 2019 20:14:13 +0000 (22:14 +0200)
src/test/data/hello-world.properties
src/test/java/com/gitblit/tests/JGitUtilsTest.java

index 7828a8ce405af1a282ba509f33ebc8fb81e995b8..7482c8630f304f967825b9178e53962294d1f3ec 100644 (file)
@@ -5,6 +5,7 @@ commit.fifteen=5ebfaca
 commit.added=192cded
 commit.changed=b2c50ce
 commit.deleted=8613bee10bde27a0fbaca66447cdc3f0f9483365
+commits.since_20190605=10
 users.byEmail=11
 users.byName=10
 files.top=14
index a493884a0368455631284cce49831340f6b1edeb..1d9150a159b4db3ccf87bc6d0f53b81faeeab4d8 100644 (file)
@@ -656,10 +656,11 @@ public class JGitUtilsTest extends GitblitUnitTest {
                commits = JGitUtils.getRevLog(repository, null, "java.java", 0, 2);\r
                assertEquals(2, commits.size());\r
 \r
-               // grab the commits since 2008-07-15\r
+               // grab the commits since 2019-06-05\r
                commits = JGitUtils.getRevLog(repository, null,\r
-                               new SimpleDateFormat("yyyy-MM-dd").parse("2008-07-15"));\r
-               assertEquals(12, commits.size());\r
+                               new SimpleDateFormat("yyyy-MM-dd").parse("2019-06-05"));\r
+               assertEquals("Wrong number of commits since 2019-06-05.",\r
+                               GitBlitSuite.helloworldSettings.getInteger(HelloworldKeys.commits.since_20190605, -1), commits.size());\r
                repository.close();\r
        }\r
 \r