From bb99139d8253cb5d4e7366e0bae80bcff3ad8fa5 Mon Sep 17 00:00:00 2001 From: fhanik Date: Tue, 21 Dec 2010 00:24:24 +0000 Subject: [PATCH] Test can piggy back on the 'ant test' auto switch between connectors git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1051335 13f79535-47bb-0310-9956-ffa450edef68 --- .../catalina/connector/TestMaxConnections.java | 43 +++++----------------- 1 file changed, 10 insertions(+), 33 deletions(-) diff --git a/test/org/apache/catalina/connector/TestMaxConnections.java b/test/org/apache/catalina/connector/TestMaxConnections.java index e0b74122a..9f20fbef9 100644 --- a/test/org/apache/catalina/connector/TestMaxConnections.java +++ b/test/org/apache/catalina/connector/TestMaxConnections.java @@ -27,46 +27,25 @@ import org.apache.catalina.Context; import org.apache.catalina.startup.SimpleHttpClient; import org.apache.catalina.startup.Tomcat; import org.apache.catalina.startup.TomcatBaseTest; -import org.apache.coyote.http11.Http11NioProtocol; -import org.apache.coyote.http11.Http11Protocol; +import org.apache.juli.logging.LogFactory; +import org.apache.juli.logging.Log; public class TestMaxConnections extends TomcatBaseTest{ - + private static Log log = LogFactory.getLog(TestMaxConnections.class); static int soTimeout = 3000; static int connectTimeout = 1000; - @Override - public void setUp() throws Exception { - //do nothing - } - public void testBio() throws Exception { - init(Http11Protocol.class.getName()); + public void testConnector() throws Exception { + init(); ConnectThread[] t = new ConnectThread[10]; int passcount = 0; int connectfail = 0; for (int i=0; i