Hiding exception stack printed by a successful test.

This commit is contained in:
Simone Bordet 2015-04-24 12:26:36 +02:00
parent 2912f222ba
commit 3d5164b651
1 changed files with 33 additions and 22 deletions

View File

@ -48,10 +48,12 @@ import org.eclipse.jetty.http2.parser.Parser;
import org.eclipse.jetty.io.ByteBufferPool;
import org.eclipse.jetty.io.ManagedSelector;
import org.eclipse.jetty.io.SelectChannelEndPoint;
import org.eclipse.jetty.server.HttpChannel;
import org.eclipse.jetty.server.HttpConfiguration;
import org.eclipse.jetty.server.ServerConnector;
import org.eclipse.jetty.util.BufferUtil;
import org.eclipse.jetty.util.Callback;
import org.eclipse.jetty.util.log.StdErrLog;
import org.junit.Assert;
import org.junit.Test;
@ -350,6 +352,10 @@ public class HTTP2ServerTest extends AbstractServerTest
@Test
public void testNonISOHeader() throws Exception
{
StdErrLog logger = StdErrLog.getLogger(HttpChannel.class);
logger.setHideStacks(true);
try
{
startServer(new HttpServlet()
{
@ -379,4 +385,9 @@ public class HTTP2ServerTest extends AbstractServerTest
Assert.assertTrue(closed);
}
}
finally
{
logger.setHideStacks(false);
}
}
}