James Moger
2012-02-23 4fea450fd3edfba6bb9e2c3c0a9231c6d227a09c
tests/com/gitblit/tests/JGitUtilsTest.java
@@ -97,11 +97,11 @@
   @Test
   public void testLastCommit() throws Exception {
      assertEquals(new Date(0), JGitUtils.getLastChange(null, null));
      assertEquals(new Date(0), JGitUtils.getLastChange(null));
      Repository repository = GitBlitSuite.getHelloworldRepository();
      assertTrue(JGitUtils.getCommit(repository, null) != null);
      Date date = JGitUtils.getLastChange(repository, null);
      Date date = JGitUtils.getLastChange(repository);
      repository.close();
      assertNotNull("Could not get last repository change date!", date);
   }
@@ -119,7 +119,7 @@
         assertNull(JGitUtils.getFirstCommit(repository, null));
         assertEquals(folder.lastModified(), JGitUtils.getFirstChange(repository, null)
               .getTime());
         assertEquals(folder.lastModified(), JGitUtils.getLastChange(repository, null).getTime());
         assertEquals(folder.lastModified(), JGitUtils.getLastChange(repository).getTime());
         assertNull(JGitUtils.getCommit(repository, null));
         repository.close();
         assertTrue(GitBlit.self().deleteRepository(repositoryName));