You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ro...@apache.org on 2007/09/22 09:25:59 UTC

svn commit: r578387 - /jakarta/httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/impl/conn/TestTSCCMNoServer.java

Author: rolandw
Date: Sat Sep 22 00:25:59 2007
New Revision: 578387

URL: http://svn.apache.org/viewvc?rev=578387&view=rev
Log:
HTTPCLIENT-692: updated test cases

Modified:
    jakarta/httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/impl/conn/TestTSCCMNoServer.java

Modified: jakarta/httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/impl/conn/TestTSCCMNoServer.java
URL: http://svn.apache.org/viewvc/jakarta/httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/impl/conn/TestTSCCMNoServer.java?rev=578387&r1=578386&r2=578387&view=diff
==============================================================================
--- jakarta/httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/impl/conn/TestTSCCMNoServer.java (original)
+++ jakarta/httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/impl/conn/TestTSCCMNoServer.java Sat Sep 22 00:25:59 2007
@@ -157,7 +157,7 @@
     } // testConstructor
 
 
-    public void testGetConnection() {
+    public void testGetConnection() throws InterruptedException {
         ThreadSafeClientConnManager mgr = createTSCCM(null, null);
 
         HttpHost target = new HttpHost("www.test.invalid", 80, "http");
@@ -184,7 +184,7 @@
     // several other tests here rely on timeout behavior
 
 
-    public void testMaxConnTotal() {
+    public void testMaxConnTotal() throws InterruptedException {
 
         HttpParams params = createDefaultParams();
         HttpConnectionManagerParams.setDefaultMaxConnectionsPerHost(params, 1);
@@ -365,7 +365,7 @@
     }
 
 
-    public void testDeleteClosedConnections() {
+    public void testDeleteClosedConnections() throws InterruptedException {
         
         ThreadSafeClientConnManager mgr = createTSCCM(null, null);
 
@@ -469,7 +469,7 @@
         assertNotNull("thread should have gotten an exception",
                       gct.getException());
         assertSame("thread got wrong exception",
-                   IllegalThreadStateException.class,
+                   InterruptedException.class,
                    gct.getException().getClass());
 
         // make sure the manager is still working
@@ -530,7 +530,5 @@
         mgr.shutdown();
     }
 
-    // 3.x TestHttpConnectionManager.testShutdownAll is not ported
-    // the shutdownAll() method is scheduled for removal
 
 } // class TestTSCCMNoServer