diff --git a/src/test/java/com/dostalgia/ExecutableDetectorTest.java b/src/test/java/com/dostalgia/ExecutableDetectorTest.java index 58f1fe2..ced8efb 100644 --- a/src/test/java/com/dostalgia/ExecutableDetectorTest.java +++ b/src/test/java/com/dostalgia/ExecutableDetectorTest.java @@ -14,8 +14,14 @@ import static org.junit.jupiter.api.Assertions.assertTrue; class ExecutableDetectorTest { + private final PlatformDetector platform = new PlatformDetector(); private final ExecutableDetector detector = new ExecutableDetector(); + // Manually wire dependencies since we're not in a CDI container + { + detector.platform = platform; + } + @Test void findAll_findsExeComBat(@TempDir Path dir) throws Exception { Files.writeString(dir.resolve("GAME.EXE"), "MZ");