Issue #1817 - JstlTest failure with JDK 9.

Disabled test for JDK 9.
This commit is contained in:
Simone Bordet 2017-09-13 15:42:18 +02:00
parent 8d03e97205
commit 0bfc5a140f
1 changed files with 11 additions and 6 deletions

View File

@ -18,11 +18,6 @@
package org.eclipse.jetty.jstl;
import static org.hamcrest.Matchers.containsString;
import static org.hamcrest.Matchers.is;
import static org.hamcrest.Matchers.not;
import static org.junit.Assert.assertThat;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
@ -36,15 +31,22 @@ import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.server.ServerConnector;
import org.eclipse.jetty.toolchain.test.FS;
import org.eclipse.jetty.toolchain.test.JAR;
import org.eclipse.jetty.toolchain.test.JDK;
import org.eclipse.jetty.toolchain.test.MavenTestingUtils;
import org.eclipse.jetty.util.IO;
import org.eclipse.jetty.webapp.Configuration;
import org.eclipse.jetty.webapp.WebAppContext;
import org.junit.AfterClass;
import org.junit.Assume;
import org.junit.BeforeClass;
import org.junit.Ignore;
import org.junit.Test;
import static org.hamcrest.Matchers.containsString;
import static org.hamcrest.Matchers.is;
import static org.hamcrest.Matchers.not;
import static org.junit.Assert.assertThat;
public class JstlTest
{
private static Server server;
@ -53,6 +55,8 @@ public class JstlTest
@BeforeClass
public static void startServer() throws Exception
{
Assume.assumeFalse(JDK.IS_9);
// Setup Server
server = new Server();
ServerConnector connector = new ServerConnector(server);
@ -102,7 +106,8 @@ public class JstlTest
@AfterClass
public static void stopServer() throws Exception
{
server.stop();
if (server != null)
server.stop();
}
@Test