James Moger
2013-09-27 319342c09152c61af13930e79777e1396f9c397f
src/test/java/com/gitblit/tests/DiffUtilsTest.java
@@ -43,7 +43,7 @@
      Repository repository = GitBlitSuite.getHelloworldRepository();
      RevCommit commit = JGitUtils.getCommit(repository,
            "1d0c2933a4ae69c362f76797d42d6bd182d05176");
      String diff = DiffUtils.getCommitDiff(repository, commit, DiffOutputType.PLAIN);
      String diff = DiffUtils.getCommitDiff(repository, commit, DiffOutputType.PLAIN).content;
      repository.close();
      assertTrue(diff != null && diff.length() > 0);
      String expected = "-      system.out.println(\"Hello World\");\n+      System.out.println(\"Hello World\"";
@@ -57,7 +57,7 @@
            "8baf6a833b5579384d9b9ceb8a16b5d0ea2ec4ca");
      RevCommit commit = JGitUtils.getCommit(repository,
            "1d0c2933a4ae69c362f76797d42d6bd182d05176");
      String diff = DiffUtils.getDiff(repository, baseCommit, commit, DiffOutputType.PLAIN);
      String diff = DiffUtils.getDiff(repository, baseCommit, commit, DiffOutputType.PLAIN).content;
      repository.close();
      assertTrue(diff != null && diff.length() > 0);
      String expected = "-      system.out.println(\"Hello World\");\n+      System.out.println(\"Hello World\"";
@@ -69,7 +69,7 @@
      Repository repository = GitBlitSuite.getHelloworldRepository();
      RevCommit commit = JGitUtils.getCommit(repository,
            "1d0c2933a4ae69c362f76797d42d6bd182d05176");
      String diff = DiffUtils.getDiff(repository, commit, "java.java", DiffOutputType.PLAIN);
      String diff = DiffUtils.getDiff(repository, commit, "java.java", DiffOutputType.PLAIN).content;
      repository.close();
      assertTrue(diff != null && diff.length() > 0);
      String expected = "-      system.out.println(\"Hello World\");\n+      System.out.println(\"Hello World\"";