Skip to content

Commit 959a804

Browse files
committed
Windows tests still broken because of path issues. Hopefully last issue.
1 parent 1eb5f14 commit 959a804

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/test/java/name/ipsi/project/fwbp/MainTest.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,21 @@ void testMainMethod() throws Exception {
2222

2323
Main.main(new String[]{});
2424

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"));
3232
expectedFiles.sort(Comparator.naturalOrder());
3333

34-
var actualFiles = new ArrayList<String>();
34+
var actualFiles = new ArrayList<Path>();
3535

3636
Files.walkFileTree(Path.of("modules", "wod-werewolf-20-core"), new SimpleFileVisitor<>() {
3737
@Override
3838
public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) {
39-
actualFiles.add(file.toString());
39+
actualFiles.add(file);
4040
return FileVisitResult.CONTINUE;
4141
}
4242
});

0 commit comments

Comments
 (0)