diff --git a/jetty-webapp/src/test/java/org/eclipse/jetty/webapp/ClassMatcherTest.java b/jetty-webapp/src/test/java/org/eclipse/jetty/webapp/ClassMatcherTest.java index 5beabdf2cd5..726234bf452 100644 --- a/jetty-webapp/src/test/java/org/eclipse/jetty/webapp/ClassMatcherTest.java +++ b/jetty-webapp/src/test/java/org/eclipse/jetty/webapp/ClassMatcherTest.java @@ -25,8 +25,6 @@ import org.eclipse.jetty.webapp.ClassMatcher.Entry; import org.hamcrest.Matchers; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; -import org.junit.jupiter.api.condition.EnabledOnJre; -import org.junit.jupiter.api.condition.JRE; import static org.hamcrest.MatcherAssert.assertThat; import static org.junit.jupiter.api.Assertions.assertFalse; @@ -125,11 +123,11 @@ public class ClassMatcherTest public void testMatchFundamentalExcludeSpecific() { _pattern.clear(); - _pattern.add("javax."); - _pattern.add("-javax.ws.rs.", "-javax.inject."); + _pattern.add("jakarta."); + _pattern.add("-jakarta.ws.rs.", "-jakarta.inject."); assertFalse(_pattern.match("org.example.Anything")); - assertTrue(_pattern.match("javax.servlet.HttpServlet")); - assertFalse(_pattern.match("javax.ws.rs.ProcessingException")); + assertTrue(_pattern.match("jakarta.servlet.HttpServlet")); + assertFalse(_pattern.match("jakarta.ws.rs.ProcessingException")); } @SuppressWarnings("restriction")