summaryrefslogtreecommitdiffstats
path: root/src/test/java/com
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2013-07-03 11:11:48 -0400
committerJames Moger <james.moger@gitblit.com>2013-07-03 11:11:48 -0400
commit5c5b7a8659851abc6ce1654414ceeef2e7f9c803 (patch)
treec5c0650883dc81a1e8faaef2919f764d1316be9d /src/test/java/com
parentd9d4677aa4f4774dddd57a6a9aef28931c8f3f5e (diff)
downloadgitblit-5c5b7a8659851abc6ce1654414ceeef2e7f9c803.tar.gz
gitblit-5c5b7a8659851abc6ce1654414ceeef2e7f9c803.zip
Set author as tooltip of "last change" on repositories page (issue-238)
Diffstat (limited to 'src/test/java/com')
-rw-r--r--src/test/java/com/gitblit/tests/JGitUtilsTest.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/java/com/gitblit/tests/JGitUtilsTest.java b/src/test/java/com/gitblit/tests/JGitUtilsTest.java
index ce72a46f..375dbd5a 100644
--- a/src/test/java/com/gitblit/tests/JGitUtilsTest.java
+++ b/src/test/java/com/gitblit/tests/JGitUtilsTest.java
@@ -118,11 +118,11 @@ public class JGitUtilsTest {
@Test
public void testLastCommit() throws Exception {
- assertEquals(new Date(0), JGitUtils.getLastChange(null));
+ assertEquals(new Date(0), JGitUtils.getLastChange(null).when);
Repository repository = GitBlitSuite.getHelloworldRepository();
assertTrue(JGitUtils.getCommit(repository, null) != null);
- Date date = JGitUtils.getLastChange(repository);
+ Date date = JGitUtils.getLastChange(repository).when;
repository.close();
assertNotNull("Could not get last repository change date!", date);
}
@@ -140,7 +140,7 @@ public class JGitUtilsTest {
assertNull(JGitUtils.getFirstCommit(repository, null));
assertEquals(folder.lastModified(), JGitUtils.getFirstChange(repository, null)
.getTime());
- assertEquals(folder.lastModified(), JGitUtils.getLastChange(repository).getTime());
+ assertEquals(folder.lastModified(), JGitUtils.getLastChange(repository).when.getTime());
assertNull(JGitUtils.getCommit(repository, null));
repository.close();
RepositoryCache.close(repository);