Skip to content

Commit

Permalink
Windows tests still broken because of path issues. Hopefully last issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
ipsi committed Sep 3, 2022
1 parent 1eb5f14 commit 959a804
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/test/java/name/ipsi/project/fwbp/MainTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,21 @@ void testMainMethod() throws Exception {

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

var expectedFiles = new ArrayList<String>();
expectedFiles.add("modules/wod-werewolf-20-core/module.json");
expectedFiles.add("modules/wod-werewolf-20-core/packs/auspices.db");
expectedFiles.add("modules/wod-werewolf-20-core/packs/breeds.db");
expectedFiles.add("modules/wod-werewolf-20-core/packs/gifts.db");
expectedFiles.add("modules/wod-werewolf-20-core/packs/tribes.db");
expectedFiles.add("modules/wod-werewolf-20-core/packs/weapons.db");
var expectedFiles = new ArrayList<Path>();
expectedFiles.add(Path.of("modules", "wod-werewolf-20-core", "module.json"));
expectedFiles.add(Path.of("modules", "wod-werewolf-20-core", "packs", "auspices.db"));
expectedFiles.add(Path.of("modules", "wod-werewolf-20-core", "packs", "breeds.db"));
expectedFiles.add(Path.of("modules", "wod-werewolf-20-core", "packs", "gifts.db"));
expectedFiles.add(Path.of("modules", "wod-werewolf-20-core", "packs", "tribes.db"));
expectedFiles.add(Path.of("modules", "wod-werewolf-20-core", "packs", "weapons.db"));
expectedFiles.sort(Comparator.naturalOrder());

var actualFiles = new ArrayList<String>();
var actualFiles = new ArrayList<Path>();

Files.walkFileTree(Path.of("modules", "wod-werewolf-20-core"), new SimpleFileVisitor<>() {
@Override
public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) {
actualFiles.add(file.toString());
actualFiles.add(file);
return FileVisitResult.CONTINUE;
}
});
Expand Down

0 comments on commit 959a804

Please sign in to comment.