Fixes #1243 - ProxyServletFailureTest.testServerException() results in ServletException.

This commit is contained in:
Simone Bordet 2017-01-17 10:15:20 +01:00
parent fb8ecf9970
commit 4c8441a0df
1 changed files with 2 additions and 1 deletions

View File

@ -44,6 +44,7 @@ import org.eclipse.jetty.client.api.Request;
import org.eclipse.jetty.client.api.Response; import org.eclipse.jetty.client.api.Response;
import org.eclipse.jetty.client.util.BytesContentProvider; import org.eclipse.jetty.client.util.BytesContentProvider;
import org.eclipse.jetty.client.util.DeferredContentProvider; import org.eclipse.jetty.client.util.DeferredContentProvider;
import org.eclipse.jetty.server.HttpChannel;
import org.eclipse.jetty.server.HttpConnectionFactory; import org.eclipse.jetty.server.HttpConnectionFactory;
import org.eclipse.jetty.server.Server; import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.server.ServerConnector; import org.eclipse.jetty.server.ServerConnector;
@ -397,7 +398,7 @@ public class ProxyServletFailureTest
@Test @Test
public void testServerException() throws Exception public void testServerException() throws Exception
{ {
try (StacklessLogging stackless = new StacklessLogging(ServletHandler.class)) try (StacklessLogging stackless = new StacklessLogging(HttpChannel.class))
{ {
prepareProxy(); prepareProxy();
prepareServer(new HttpServlet() prepareServer(new HttpServlet()