@@ -40,7 +40,7 @@ public void testDiffOutputTypes() throws Exception {
4040 public void testParentCommitDiff () throws Exception {
4141 Repository repository = GitBlitSuite .getHelloworldRepository ();
4242 RevCommit commit = JGitUtils .getCommit (repository ,
43- "1d0c2933a4ae69c362f76797d42d6bd182d05176" );
43+ GitBlitSuite . helloworldSettings . getRequiredString ( HelloworldKeys . commit . second ) );
4444 String diff = DiffUtils .getCommitDiff (repository , commit , DiffComparator .SHOW_WHITESPACE , DiffOutputType .PLAIN , 3 ).content ;
4545 repository .close ();
4646 assertTrue (diff != null && diff .length () > 0 );
@@ -52,9 +52,9 @@ public void testParentCommitDiff() throws Exception {
5252 public void testArbitraryCommitDiff () throws Exception {
5353 Repository repository = GitBlitSuite .getHelloworldRepository ();
5454 RevCommit baseCommit = JGitUtils .getCommit (repository ,
55- "8baf6a833b5579384d9b9ceb8a16b5d0ea2ec4ca" );
55+ GitBlitSuite . helloworldSettings . getRequiredString ( HelloworldKeys . commit . first ) );
5656 RevCommit commit = JGitUtils .getCommit (repository ,
57- "1d0c2933a4ae69c362f76797d42d6bd182d05176" );
57+ GitBlitSuite . helloworldSettings . getRequiredString ( HelloworldKeys . commit . second ) );
5858 String diff = DiffUtils .getDiff (repository , baseCommit , commit , DiffComparator .SHOW_WHITESPACE , DiffOutputType .PLAIN , 3 ).content ;
5959 repository .close ();
6060 assertTrue (diff != null && diff .length () > 0 );
@@ -66,7 +66,7 @@ public void testArbitraryCommitDiff() throws Exception {
6666 public void testPlainFileDiff () throws Exception {
6767 Repository repository = GitBlitSuite .getHelloworldRepository ();
6868 RevCommit commit = JGitUtils .getCommit (repository ,
69- "1d0c2933a4ae69c362f76797d42d6bd182d05176" );
69+ GitBlitSuite . helloworldSettings . getRequiredString ( HelloworldKeys . commit . second ) );
7070 String diff = DiffUtils .getDiff (repository , commit , "java.java" , DiffComparator .SHOW_WHITESPACE , DiffOutputType .PLAIN , 3 ).content ;
7171 repository .close ();
7272 assertTrue (diff != null && diff .length () > 0 );
@@ -78,7 +78,7 @@ public void testPlainFileDiff() throws Exception {
7878 public void testFilePatch () throws Exception {
7979 Repository repository = GitBlitSuite .getHelloworldRepository ();
8080 RevCommit commit = JGitUtils .getCommit (repository ,
81- "1d0c2933a4ae69c362f76797d42d6bd182d05176" );
81+ GitBlitSuite . helloworldSettings . getRequiredString ( HelloworldKeys . commit . second ) );
8282 String patch = DiffUtils .getCommitPatch (repository , null , commit , "java.java" );
8383 repository .close ();
8484 assertTrue (patch != null && patch .length () > 0 );
@@ -90,9 +90,9 @@ public void testFilePatch() throws Exception {
9090 public void testArbitraryFilePatch () throws Exception {
9191 Repository repository = GitBlitSuite .getHelloworldRepository ();
9292 RevCommit baseCommit = JGitUtils .getCommit (repository ,
93- "8baf6a833b5579384d9b9ceb8a16b5d0ea2ec4ca" );
93+ GitBlitSuite . helloworldSettings . getRequiredString ( HelloworldKeys . commit . first ) );
9494 RevCommit commit = JGitUtils .getCommit (repository ,
95- "1d0c2933a4ae69c362f76797d42d6bd182d05176" );
95+ GitBlitSuite . helloworldSettings . getRequiredString ( HelloworldKeys . commit . second ) );
9696 String patch = DiffUtils .getCommitPatch (repository , baseCommit , commit , "java.java" );
9797 repository .close ();
9898 assertTrue (patch != null && patch .length () > 0 );
@@ -104,9 +104,9 @@ public void testArbitraryFilePatch() throws Exception {
104104 public void testArbitraryCommitPatch () throws Exception {
105105 Repository repository = GitBlitSuite .getHelloworldRepository ();
106106 RevCommit baseCommit = JGitUtils .getCommit (repository ,
107- "8baf6a833b5579384d9b9ceb8a16b5d0ea2ec4ca" );
107+ GitBlitSuite . helloworldSettings . getRequiredString ( HelloworldKeys . commit . first ) );
108108 RevCommit commit = JGitUtils .getCommit (repository ,
109- "1d0c2933a4ae69c362f76797d42d6bd182d05176" );
109+ GitBlitSuite . helloworldSettings . getRequiredString ( HelloworldKeys . commit . second ) );
110110 String patch = DiffUtils .getCommitPatch (repository , baseCommit , commit , null );
111111 repository .close ();
112112 assertTrue (patch != null && patch .length () > 0 );
@@ -118,9 +118,9 @@ public void testArbitraryCommitPatch() throws Exception {
118118 public void testBlame () throws Exception {
119119 Repository repository = GitBlitSuite .getHelloworldRepository ();
120120 List <AnnotatedLine > lines = DiffUtils .blame (repository , "java.java" ,
121- "1d0c2933a4ae69c362f76797d42d6bd182d05176" );
121+ GitBlitSuite . helloworldSettings . getRequiredString ( HelloworldKeys . commit . second ) );
122122 repository .close ();
123123 assertTrue (lines .size () > 0 );
124- assertEquals ("c6d31dccf5cc75e8e46299fc62d38f60ec6d41e0" , lines .get (0 ).commitId );
124+ assertEquals (GitBlitSuite . helloworldSettings . getRequiredString ( HelloworldKeys . commit . first ) , lines .get (0 ).commitId );
125125 }
126126}
0 commit comments