@@ -107,7 +107,7 @@ private void checkCurrentVersion(File root, int timestamp, String commitId, Stri
107
107
}
108
108
109
109
@ Test
110
- public void testDetermineCurrentVersionWithEmptyRepository () throws Exception {
110
+ void testDetermineCurrentVersionWithEmptyRepository () throws Exception {
111
111
File emptyGitDir = new File (repository .getSourceRoot (), "gitEmpty" );
112
112
try (Git git = Git .init ().setDirectory (emptyGitDir ).call ()) {
113
113
GitRepository gitrepo = (GitRepository ) RepositoryFactory .getRepository (git .getRepository ().getWorkTree ());
@@ -119,7 +119,7 @@ public void testDetermineCurrentVersionWithEmptyRepository() throws Exception {
119
119
}
120
120
121
121
@ Test
122
- public void testDetermineCurrentVersionOfKnownRepository () throws Exception {
122
+ void testDetermineCurrentVersionOfKnownRepository () throws Exception {
123
123
File root = new File (repository .getSourceRoot (), "git" );
124
124
GitRepository gitrepo = (GitRepository ) RepositoryFactory .getRepository (root );
125
125
assertNotNull (gitrepo );
@@ -130,7 +130,7 @@ public void testDetermineCurrentVersionOfKnownRepository() throws Exception {
130
130
}
131
131
132
132
@ Test
133
- public void testDetermineCurrentVersionAfterChange () throws Exception {
133
+ void testDetermineCurrentVersionAfterChange () throws Exception {
134
134
File root = new File (repository .getSourceRoot (), "git" );
135
135
GitRepository gitrepo = (GitRepository ) RepositoryFactory .getRepository (root );
136
136
assertNotNull (gitrepo );
@@ -174,7 +174,7 @@ public void testDetermineCurrentVersionAfterChange() throws Exception {
174
174
}
175
175
176
176
@ Test
177
- public void testDetermineBranchBasic () throws Exception {
177
+ void testDetermineBranchBasic () throws Exception {
178
178
// First check branch of known repository.
179
179
File root = new File (repository .getSourceRoot (), "git" );
180
180
GitRepository gitrepo = (GitRepository ) RepositoryFactory .getRepository (root );
@@ -184,7 +184,7 @@ public void testDetermineBranchBasic() throws Exception {
184
184
}
185
185
186
186
@ Test
187
- public void testDetermineBranchAfterChange () throws Exception {
187
+ void testDetermineBranchAfterChange () throws Exception {
188
188
// Clone the test repository and create new branch there.
189
189
// Clone under source root to avoid problems with prohibited symlinks.
190
190
File root = new File (repository .getSourceRoot (), "git" );
@@ -246,15 +246,15 @@ void testGetHistoryInBranch() throws Exception {
246
246
}
247
247
248
248
@ Test
249
- public void testDetermineParentEmpty () throws Exception {
249
+ void testDetermineParentEmpty () throws Exception {
250
250
File root = new File (repository .getSourceRoot (), "git" );
251
251
GitRepository gitrepo = (GitRepository ) RepositoryFactory .getRepository (root );
252
252
String parent = gitrepo .determineParent ();
253
253
assertNull (parent );
254
254
}
255
255
256
256
@ Test
257
- public void testDetermineParent () throws Exception {
257
+ void testDetermineParent () throws Exception {
258
258
File root = new File (repository .getSourceRoot (), "git" );
259
259
GitRepository gitrepo = (GitRepository ) RepositoryFactory .getRepository (root );
260
260
String parent ;
@@ -284,7 +284,7 @@ public void testDetermineParent() throws Exception {
284
284
* Test of fileHasAnnotation method, of class GitRepository.
285
285
*/
286
286
@ Test
287
- public void fileHasAnnotation () {
287
+ void fileHasAnnotation () {
288
288
boolean result = instance .fileHasAnnotation (null );
289
289
assertTrue (result );
290
290
}
@@ -293,7 +293,7 @@ public void fileHasAnnotation() {
293
293
* Test of fileHasHistory method, of class GitRepository.
294
294
*/
295
295
@ Test
296
- public void fileHasHistory () {
296
+ void fileHasHistory () {
297
297
boolean result = instance .fileHasHistory (null );
298
298
assertTrue (result );
299
299
}
@@ -309,7 +309,7 @@ public void fileHasHistory() {
309
309
* </pre>
310
310
*/
311
311
@ Test
312
- public void testRenamedFiles () throws Exception {
312
+ void testRenamedFiles () throws Exception {
313
313
String [][] tests = new String [][] {
314
314
{Paths .get ("moved2" , "renamed2.c" ).toString (), "84599b3c" , Paths .get ("moved2" , "renamed2.c" ).toString ()},
315
315
{Paths .get ("moved2" , "renamed2.c" ).toString (), "67dfbe26" , Paths .get ("moved" , "renamed2.c" ).toString ()},
@@ -342,7 +342,7 @@ private void testAnnotationOfFile(GitRepository gitrepo, File file, String revis
342
342
}
343
343
344
344
@ Test
345
- public void testAnnotationOfRenamedFileWithHandlingOff () throws Exception {
345
+ void testAnnotationOfRenamedFileWithHandlingOff () throws Exception {
346
346
String [] revisions = {"84599b3c" };
347
347
Set <String > revSet = new HashSet <>();
348
348
Collections .addAll (revSet , revisions );
@@ -355,7 +355,7 @@ public void testAnnotationOfRenamedFileWithHandlingOff() throws Exception {
355
355
}
356
356
357
357
@ Test
358
- public void testAnnotationOfRenamedFileWithHandlingOn () throws Exception {
358
+ void testAnnotationOfRenamedFileWithHandlingOn () throws Exception {
359
359
String [] revisions = {"1086eaf5" , "ce4c98ec" };
360
360
Set <String > revSet = new HashSet <>();
361
361
Collections .addAll (revSet , revisions );
@@ -368,7 +368,7 @@ public void testAnnotationOfRenamedFileWithHandlingOn() throws Exception {
368
368
}
369
369
370
370
@ Test
371
- public void testAnnotationOfRenamedFilePastWithHandlingOn () throws Exception {
371
+ void testAnnotationOfRenamedFilePastWithHandlingOn () throws Exception {
372
372
String [] revisions = {"1086eaf5" , "ce4c98ec" };
373
373
Set <String > revSet = new HashSet <>();
374
374
Collections .addAll (revSet , revisions );
@@ -381,7 +381,7 @@ public void testAnnotationOfRenamedFilePastWithHandlingOn() throws Exception {
381
381
}
382
382
383
383
@ Test
384
- public void testInvalidRenamedFiles () {
384
+ void testInvalidRenamedFiles () {
385
385
String [][] tests = new String [][] {
386
386
{"" , "67dfbe26" },
387
387
{"moved/renamed2.c" , "" },
@@ -408,7 +408,7 @@ public void testInvalidRenamedFiles() {
408
408
* @see #testRenamedFiles for git repo structure info
409
409
*/
410
410
@ Test
411
- public void testGetRenamedFileContent () throws Exception {
411
+ void testGetRenamedFileContent () throws Exception {
412
412
String old_content
413
413
= "#include <stdio.h>\n "
414
414
+ "#include <stdlib.h>\n "
@@ -483,7 +483,7 @@ public void testGetRenamedFileContent() throws Exception {
483
483
* @see #testRenamedFiles for git repo structure info
484
484
*/
485
485
@ Test
486
- public void testGetHistoryForNonExistentRenamed () throws Exception {
486
+ void testGetHistoryForNonExistentRenamed () throws Exception {
487
487
final List <String []> tests = Arrays .asList (
488
488
new String [] {Paths .get ("moved" , "renamed2.c" ).toString (), "84599b3c" },
489
489
@@ -520,7 +520,7 @@ private void runRenamedTest(String fname, String cset, String content) throws Ex
520
520
521
521
@ ParameterizedTest
522
522
@ ValueSource (booleans = {true , false })
523
- public void testHistory (boolean renamedHandling ) throws Exception {
523
+ void testHistory (boolean renamedHandling ) throws Exception {
524
524
RuntimeEnvironment .getInstance ().setHandleHistoryOfRenamedFiles (renamedHandling );
525
525
File root = new File (repository .getSourceRoot (), "git" );
526
526
GitRepository gitrepo = (GitRepository ) RepositoryFactory .getRepository (root );
@@ -597,7 +597,7 @@ public void testHistory(boolean renamedHandling) throws Exception {
597
597
}
598
598
599
599
@ Test
600
- public void testSingleHistory () throws Exception {
600
+ void testSingleHistory () throws Exception {
601
601
RuntimeEnvironment .getInstance ().setHandleHistoryOfRenamedFiles (false );
602
602
File root = new File (repository .getSourceRoot (), "git" );
603
603
GitRepository gitrepo = (GitRepository ) RepositoryFactory .getRepository (root );
@@ -611,7 +611,7 @@ public void testSingleHistory() throws Exception {
611
611
}
612
612
613
613
@ Test
614
- public void testRenamedSingleHistory () throws Exception {
614
+ void testRenamedSingleHistory () throws Exception {
615
615
RuntimeEnvironment .getInstance ().setHandleHistoryOfRenamedFiles (true );
616
616
File root = new File (repository .getSourceRoot (), "git" );
617
617
GitRepository gitrepo = (GitRepository ) RepositoryFactory .getRepository (root );
@@ -689,7 +689,7 @@ void testGetHistorySinceTillRevRev() throws Exception {
689
689
}
690
690
691
691
@ Test
692
- public void testBuildTagListEmpty () throws Exception {
692
+ void testBuildTagListEmpty () throws Exception {
693
693
File root = new File (repository .getSourceRoot (), "git" );
694
694
// Clone under source root to avoid problems with prohibited symlinks.
695
695
File localPath = new File (repository .getSourceRoot (), "testBuildTagListEmpty" );
@@ -710,7 +710,7 @@ public void testBuildTagListEmpty() throws Exception {
710
710
}
711
711
712
712
@ Test
713
- public void testBuildTagListMultipleTags () throws Exception {
713
+ void testBuildTagListMultipleTags () throws Exception {
714
714
File root = new File (repository .getSourceRoot (), "git" );
715
715
// Clone under source root to avoid problems with prohibited symlinks.
716
716
File localPath = new File (repository .getSourceRoot (), "testBuildTagListMultipleTags" );
@@ -750,7 +750,7 @@ public void testBuildTagListMultipleTags() throws Exception {
750
750
}
751
751
752
752
@ Test
753
- public void testBuildTagListNotHead () throws Exception {
753
+ void testBuildTagListNotHead () throws Exception {
754
754
File root = new File (repository .getSourceRoot (), "git" );
755
755
// Clone under source root to avoid problems with prohibited symlinks.
756
756
File localPath = new File (repository .getSourceRoot (), "testBuildTagListNotHead" );
0 commit comments