diff --git a/module-client/src/test/java/org/apache/http/client/TestAll.java b/module-client/src/test/java/org/apache/http/client/TestAll.java index 6f57cd3a6..81748a6ed 100644 --- a/module-client/src/test/java/org/apache/http/client/TestAll.java +++ b/module-client/src/test/java/org/apache/http/client/TestAll.java @@ -34,6 +34,7 @@ import junit.framework.Test; import junit.framework.TestCase; import junit.framework.TestSuite; +import org.apache.http.conn.TestAllConn; import org.apache.http.conn.ssl.TestAllSSL; import org.apache.http.cookie.TestAllCookie; import org.apache.http.impl.client.TestAllHttpClientImpl; @@ -51,6 +52,7 @@ public class TestAll extends TestCase { suite.addTest(TestAllCookie.suite()); suite.addTest(TestAllCookieImpl.suite()); suite.addTest(TestAllHttpClientImpl.suite()); + suite.addTest(TestAllConn.suite()); suite.addTest(TestAllConnImpl.suite()); suite.addTest(TestAllSSL.suite()); suite.addTest(TestHttpState.suite()); diff --git a/module-client/src/test/java/org/apache/http/conn/TestAllConn.java b/module-client/src/test/java/org/apache/http/conn/TestAllConn.java new file mode 100644 index 000000000..2ddfb93a1 --- /dev/null +++ b/module-client/src/test/java/org/apache/http/conn/TestAllConn.java @@ -0,0 +1,57 @@ +/* + * $HeadURL$ + * $Revision$ + * $Date$ + * ==================================================================== + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + * ==================================================================== + * + * This software consists of voluntary contributions made by many + * individuals on behalf of the Apache Software Foundation. For more + * information on the Apache Software Foundation, please see + * . + * + */ + +package org.apache.http.conn; + +import junit.framework.Test; +import junit.framework.TestCase; +import junit.framework.TestSuite; + +public class TestAllConn extends TestCase { + + public TestAllConn(String testName) { + super(testName); + } + + public static Test suite() { + TestSuite suite = new TestSuite(); + + suite.addTest(TestHttpRoute.suite()); + //suite.addTest(TestScheme.suite()); @@@ this one has a problem + + return suite; + } + + public static void main(String args[]) { + String[] testCaseName = { TestAllConn.class.getName() }; + junit.textui.TestRunner.main(testCaseName); + } + +} diff --git a/module-client/src/test/java/org/apache/http/impl/conn/TestHttpRoute.java b/module-client/src/test/java/org/apache/http/conn/TestHttpRoute.java similarity index 99% rename from module-client/src/test/java/org/apache/http/impl/conn/TestHttpRoute.java rename to module-client/src/test/java/org/apache/http/conn/TestHttpRoute.java index bb87c3826..821e68aae 100644 --- a/module-client/src/test/java/org/apache/http/impl/conn/TestHttpRoute.java +++ b/module-client/src/test/java/org/apache/http/conn/TestHttpRoute.java @@ -28,7 +28,7 @@ * */ -package org.apache.http.impl.conn; +package org.apache.http.conn; import java.net.InetAddress; @@ -40,7 +40,6 @@ import junit.framework.TestCase; import junit.framework.TestSuite; import org.apache.http.HttpHost; -import org.apache.http.conn.HttpRoute; /** diff --git a/module-client/src/test/java/org/apache/http/impl/conn/TestAllConnImpl.java b/module-client/src/test/java/org/apache/http/impl/conn/TestAllConnImpl.java index 9dcd98397..b73c84223 100644 --- a/module-client/src/test/java/org/apache/http/impl/conn/TestAllConnImpl.java +++ b/module-client/src/test/java/org/apache/http/impl/conn/TestAllConnImpl.java @@ -43,8 +43,7 @@ public class TestAllConnImpl extends TestCase { public static Test suite() { TestSuite suite = new TestSuite(); - suite.addTest(TestHttpRoute.suite()); - suite.addTest(TestLocalServer.suite()); + suite.addTest(TestLocalServer.suite()); // doesn't really belong here suite.addTest(TestTSCCMNoServer.suite()); suite.addTest(TestTSCCMWithServer.suite()); diff --git a/module-client/src/test/java/org/apache/http/mockup/HttpConnectionMockup.java b/module-client/src/test/java/org/apache/http/mockup/HttpConnectionMockup.java index b270baf67..a6c2771c4 100644 --- a/module-client/src/test/java/org/apache/http/mockup/HttpConnectionMockup.java +++ b/module-client/src/test/java/org/apache/http/mockup/HttpConnectionMockup.java @@ -33,6 +33,7 @@ package org.apache.http.mockup; import java.io.IOException; import org.apache.http.HttpConnection; +import org.apache.http.HttpConnectionMetrics; /** * {@link HttpConnection} mockup implementation. @@ -69,4 +70,8 @@ public class HttpConnectionMockup implements HttpConnection { public void setSocketTimeout(int timeout) { } + + public HttpConnectionMetrics getMetrics() { + return null; + } }