diff --git a/jetty-server/src/test/java/org/eclipse/jetty/server/handler/ConnectHandlerTest.java b/jetty-server/src/test/java/org/eclipse/jetty/server/handler/ConnectHandlerTest.java index 9abd7b3683c..d84453b03a0 100644 --- a/jetty-server/src/test/java/org/eclipse/jetty/server/handler/ConnectHandlerTest.java +++ b/jetty-server/src/test/java/org/eclipse/jetty/server/handler/ConnectHandlerTest.java @@ -1,8 +1,5 @@ package org.eclipse.jetty.server.handler; -import static org.junit.Assert.assertEquals; -import static org.junit.Assume.assumeTrue; - import java.io.BufferedReader; import java.io.ByteArrayOutputStream; import java.io.IOException; @@ -12,7 +9,6 @@ import java.io.OutputStream; import java.net.Socket; import java.nio.channels.SocketChannel; import java.util.concurrent.ConcurrentMap; - import javax.servlet.ServletException; import javax.servlet.ServletOutputStream; import javax.servlet.http.HttpServletRequest; @@ -26,6 +22,9 @@ import org.eclipse.jetty.toolchain.test.OS; import org.junit.BeforeClass; import org.junit.Test; +import static org.junit.Assert.assertEquals; +import static org.junit.Assume.assumeTrue; + /** * @version $Revision$ $Date$ */ @@ -375,7 +374,7 @@ public class ConnectHandlerTest extends AbstractConnectHandlerTest StringBuilder body = new StringBuilder(); String chunk = "0123456789ABCDEF"; - for (int i = 0; i < 1024; ++i) + for (int i = 0; i < 1024 * 1024; ++i) body.append(chunk); request = "" + @@ -488,7 +487,7 @@ public class ConnectHandlerTest extends AbstractConnectHandlerTest { // TODO needs to be further investigated assumeTrue(!OS.IS_OSX); - + String hostPort = "localhost:" + serverConnector.getLocalPort(); String request = "" + "CONNECT " + hostPort + " HTTP/1.1\r\n" + @@ -527,7 +526,7 @@ public class ConnectHandlerTest extends AbstractConnectHandlerTest { // TODO needs to be further investigated assumeTrue(!OS.IS_OSX); - + String hostPort = "localhost:" + serverConnector.getLocalPort(); String request = "" + "CONNECT " + hostPort + " HTTP/1.1\r\n" +