@@ -22,21 +22,21 @@ void testMainMethod() throws Exception {
22
22
23
23
Main .main (new String []{});
24
24
25
- var expectedFiles = new ArrayList <String >();
26
- expectedFiles .add ("modules/ wod-werewolf-20-core/ module.json" );
27
- expectedFiles .add ("modules/ wod-werewolf-20-core/ packs/ auspices.db" );
28
- expectedFiles .add ("modules/ wod-werewolf-20-core/ packs/ breeds.db" );
29
- expectedFiles .add ("modules/ wod-werewolf-20-core/ packs/ gifts.db" );
30
- expectedFiles .add ("modules/ wod-werewolf-20-core/ packs/ tribes.db" );
31
- expectedFiles .add ("modules/ wod-werewolf-20-core/ packs/ weapons.db" );
25
+ var expectedFiles = new ArrayList <Path >();
26
+ expectedFiles .add (Path . of ( "modules" , " wod-werewolf-20-core" , " module.json") );
27
+ expectedFiles .add (Path . of ( "modules" , " wod-werewolf-20-core" , " packs" , " auspices.db") );
28
+ expectedFiles .add (Path . of ( "modules" , " wod-werewolf-20-core" , " packs" , " breeds.db") );
29
+ expectedFiles .add (Path . of ( "modules" , " wod-werewolf-20-core" , " packs" , " gifts.db") );
30
+ expectedFiles .add (Path . of ( "modules" , " wod-werewolf-20-core" , " packs" , " tribes.db") );
31
+ expectedFiles .add (Path . of ( "modules" , " wod-werewolf-20-core" , " packs" , " weapons.db") );
32
32
expectedFiles .sort (Comparator .naturalOrder ());
33
33
34
- var actualFiles = new ArrayList <String >();
34
+ var actualFiles = new ArrayList <Path >();
35
35
36
36
Files .walkFileTree (Path .of ("modules" , "wod-werewolf-20-core" ), new SimpleFileVisitor <>() {
37
37
@ Override
38
38
public FileVisitResult visitFile (Path file , BasicFileAttributes attrs ) {
39
- actualFiles .add (file . toString () );
39
+ actualFiles .add (file );
40
40
return FileVisitResult .CONTINUE ;
41
41
}
42
42
});
0 commit comments