File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
opengrok-indexer/src/test/java/org/opengrok/indexer/history Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -381,7 +381,7 @@ void testAnnotationOfRenamedFilePastWithHandlingOn() throws Exception {
381
381
}
382
382
383
383
@ Test
384
- void testInvalidRenamedFiles () {
384
+ void testInvalidRenamedFiles () throws Exception {
385
385
String [][] tests = new String [][] {
386
386
{"" , "67dfbe26" },
387
387
{"moved/renamed2.c" , "" },
@@ -390,14 +390,13 @@ void testInvalidRenamedFiles() {
390
390
{"moved/renamed2.c" , null }
391
391
392
392
};
393
+ File root = new File (repository .getSourceRoot (), "git" );
394
+ GitRepository gitRepository = (GitRepository ) RepositoryFactory .getRepository (root );
393
395
assertThrows (IOException .class , () -> {
394
- File root = new File (repository .getSourceRoot (), "git" );
395
- GitRepository gitrepo = (GitRepository ) RepositoryFactory .getRepository (root );
396
-
397
396
for (String [] test : tests ) {
398
397
String file = test [0 ];
399
398
String changeset = test [1 ];
400
- gitrepo .findOriginalName (file , changeset );
399
+ gitRepository .findOriginalName (file , changeset );
401
400
}
402
401
});
403
402
}
You can’t perform that action at this time.
0 commit comments