Browse Source

Fix revLog test that broke due to changes in the hello-world repository.

tags/r1.9.0
Florian Zschocke 4 years ago
parent
commit
a98689880e

+ 1
- 0
src/test/data/hello-world.properties View 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

+ 4
- 3
src/test/java/com/gitblit/tests/JGitUtilsTest.java View File

@@ -656,10 +656,11 @@ public class JGitUtilsTest extends GitblitUnitTest {
commits = JGitUtils.getRevLog(repository, null, "java.java", 0, 2);
assertEquals(2, commits.size());
// grab the commits since 2008-07-15
// grab the commits since 2019-06-05
commits = JGitUtils.getRevLog(repository, null,
new SimpleDateFormat("yyyy-MM-dd").parse("2008-07-15"));
assertEquals(12, commits.size());
new SimpleDateFormat("yyyy-MM-dd").parse("2019-06-05"));
assertEquals("Wrong number of commits since 2019-06-05.",
GitBlitSuite.helloworldSettings.getInteger(HelloworldKeys.commits.since_20190605, -1), commits.size());
repository.close();
}

Loading…
Cancel
Save