@@ -619,7 +619,8 @@ public void testSingleHistory() throws Exception {
619
619
File root = new File (repository .getSourceRoot (), "git" );
620
620
GitRepository gitrepo = (GitRepository ) RepositoryFactory .getRepository (root );
621
621
622
- History history = gitrepo .getHistory (new File (root .getAbsolutePath (), "moved2/renamed2.c" ));
622
+ History history = gitrepo .getHistory (new File (root .getAbsolutePath (),
623
+ Paths .get ("moved2" , "renamed2.c" ).toString ()));
623
624
assertNotNull (history );
624
625
assertNotNull (history .getHistoryEntries ());
625
626
assertEquals (1 , history .getHistoryEntries ().size ());
@@ -640,9 +641,9 @@ public void testRenamedSingleHistory() throws Exception {
640
641
assertNotNull (history .getRenamedFiles ());
641
642
assertEquals (3 , history .getRenamedFiles ().size ());
642
643
643
- assertTrue (history .isRenamed ("moved/ renamed2.c" ));
644
- assertTrue (history .isRenamed ("moved2/ renamed2.c" ));
645
- assertTrue (history .isRenamed ("moved/ renamed.c" ));
644
+ assertTrue (history .isRenamed (Paths . get ( "moved" , " renamed2.c"). toString () ));
645
+ assertTrue (history .isRenamed (Paths . get ( "moved2" , " renamed2.c"). toString () ));
646
+ assertTrue (history .isRenamed (Paths . get ( "moved" , " renamed.c"). toString () ));
646
647
assertFalse (history .isRenamed ("non-existent.c" ));
647
648
assertFalse (history .isRenamed ("renamed.c" ));
648
649
0 commit comments