fix: add JUnit5 dependency, new tests, StaticResource cleanup
Build & Deploy / build-and-deploy (push) Failing after 30s

- Added quarkus-junit5 test dependency (was missing — caused assertNull failures)
- ExecutableDetectorTest: 12 tests (findAll, findMain prioritization, extender/sfx skip, setup detection)
- CdImageServiceTest: 7 tests (findInDirectory, fixCueReferences, findInBundle)
- ConfigPatcherTest: 8 tests (path rewriting, non-C drive skip, binary/large file skip, unix paths)
- StaticResource: removed unused content types (.html/.js/.css/.conf/.txt)
This commit is contained in:
David Alvarez
2026-06-09 13:01:40 +02:00
parent bb38066069
commit f8adddec52
5 changed files with 354 additions and 4 deletions
@@ -72,11 +72,7 @@ public class StaticResource {
if (n.endsWith(".png")) return "image/png";
if (n.endsWith(".webp")) return "image/webp";
if (n.endsWith(".gif")) return "image/gif";
if (n.endsWith(".conf") || n.endsWith(".txt")) return "text/plain";
if (n.endsWith(".json")) return "application/json";
if (n.endsWith(".html")) return "text/html";
if (n.endsWith(".js")) return "application/javascript";
if (n.endsWith(".css")) return "text/css";
return MediaType.APPLICATION_OCTET_STREAM;
}