Allowing URLStreamHandler test to exist in codebase, but not run in CI

This commit is contained in:
Joakim Erdfelt 2017-04-19 18:01:12 -07:00
parent 9ce9832293
commit 9e15e01f36
3 changed files with 4 additions and 3 deletions

View File

@ -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>

View File

@ -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;

View File

@ -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