Allowing URLStreamHandler test to exist in codebase, but not run in CI
This commit is contained in:
parent
9ce9832293
commit
9e15e01f36
|
@ -38,6 +38,9 @@
|
|||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<configuration>
|
||||
<excludes>
|
||||
<exclude>org.eclipse.jetty.webapp.WebAppClassLoaderUrlStreamTest</exclude>
|
||||
</excludes>
|
||||
<forkCount>1</forkCount>
|
||||
<reuseForks>false</reuseForks>
|
||||
</configuration>
|
||||
|
|
|
@ -245,7 +245,7 @@ public class WebAppClassLoaderTest
|
|||
public void testResources() throws Exception
|
||||
{
|
||||
// The existence of a URLStreamHandler changes the behavior
|
||||
assumeThat("No URLStreamHandler in place", URLStreamHandlerUtil.getFactory(), nullValue());
|
||||
assumeThat("URLStreamHandler changes behavior, skip test", URLStreamHandlerUtil.getFactory(), nullValue());
|
||||
|
||||
List<URL> expected = new ArrayList<>();
|
||||
List<URL> resources;
|
||||
|
|
|
@ -25,9 +25,7 @@ import java.util.Map;
|
|||
|
||||
import org.junit.After;
|
||||
import org.junit.Before;
|
||||
import org.junit.Ignore;
|
||||
|
||||
@Ignore("Not suitable for testing on CI (as URL object is modified)")
|
||||
public class WebAppClassLoaderUrlStreamTest extends WebAppClassLoaderTest
|
||||
{
|
||||
public static class URLHandlers implements URLStreamHandlerFactory
|
||||
|
|
Loading…
Reference in New Issue