diff --git a/src/test/java/dev/katsute/simplehttpserver/server/ServerTests.java b/src/test/java/dev/katsute/simplehttpserver/server/ServerTests.java index eac3050..d3a6e82 100644 --- a/src/test/java/dev/katsute/simplehttpserver/server/ServerTests.java +++ b/src/test/java/dev/katsute/simplehttpserver/server/ServerTests.java @@ -107,7 +107,7 @@ final void testCreateSlashContext() throws IOException{ server.removeContext("/"); } - @Test @EnabledOnJre(value={JRE.JAVA_8}) + @Test @EnabledForJreRange(min=JRE.JAVA_8, max=JRE.JAVA_17) final void testDuplicateContext8() throws IOException{ final SimpleHttpServer server = SimpleHttpServer.create(); @@ -116,7 +116,7 @@ final void testDuplicateContext8() throws IOException{ assertDoesNotThrow(() -> server.createContext("", HttpExchange::close)); } - @Test @DisabledOnJre(value={JRE.JAVA_8}) + @Test @DisabledForJreRange(min=JRE.JAVA_8, max=JRE.JAVA_17) final void testDuplicateContext18() throws IOException{ final SimpleHttpServer server = SimpleHttpServer.create();