diff --git a/jetty-ee9/jetty-ee9-webapp/src/test/java/org/eclipse/jetty/ee9/webapp/ClassMatcherTest.java b/jetty-ee9/jetty-ee9-webapp/src/test/java/org/eclipse/jetty/ee9/webapp/ClassMatcherTest.java index 7a2af34c4a5..a0891442f9b 100644 --- a/jetty-ee9/jetty-ee9-webapp/src/test/java/org/eclipse/jetty/ee9/webapp/ClassMatcherTest.java +++ b/jetty-ee9/jetty-ee9-webapp/src/test/java/org/eclipse/jetty/ee9/webapp/ClassMatcherTest.java @@ -30,6 +30,7 @@ import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.is; import static org.hamcrest.Matchers.notNullValue; import static org.junit.jupiter.api.Assertions.assertFalse; +import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertTrue; public class ClassMatcherTest @@ -212,15 +213,15 @@ public class ClassMatcherTest { // jar from JVM classloader URI modString = TypeUtil.getLocationOfClass(String.class); - // System.err.println(modString); + assertNotNull(modString); // a jar from maven repo jar URI locJunit = TypeUtil.getLocationOfClass(Test.class); - // System.err.println(locJunit); + assertNotNull(locJunit); // class file URI locTest = TypeUtil.getLocationOfClass(ClassMatcherTest.class); - // System.err.println(locTest); + assertNotNull(locTest); ClassMatcher pattern = new ClassMatcher(); @@ -235,7 +236,7 @@ public class ClassMatcherTest pattern.exclude("jrt:/java.base/"); // Add jar for individual class and classes directory - pattern.exclude(locJunit.toString(), locTest.toString()); + pattern.exclude(locJunit.toASCIIString(), locTest.toASCIIString()); assertThat(pattern.match(String.class), is(false)); assertThat(pattern.match(Test.class), is(false));