hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r899962 - in /httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http: conn/routing/TestHttpRoute.java conn/routing/TestRouteTracker.java impl/conn/TestTSCCMNoServer.java
Date Sat, 16 Jan 2010 14:26:49 GMT
Author: sebb
Date: Sat Jan 16 14:26:48 2010
New Revision: 899962

URL: http://svn.apache.org/viewvc?rev=899962&view=rev
Log:
Unused variables

Modified:
    httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/conn/routing/TestHttpRoute.java
    httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/conn/routing/TestRouteTracker.java
    httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/impl/conn/TestTSCCMNoServer.java

Modified: httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/conn/routing/TestHttpRoute.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/conn/routing/TestHttpRoute.java?rev=899962&r1=899961&r2=899962&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/conn/routing/TestHttpRoute.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/conn/routing/TestHttpRoute.java
Sat Jan 16 14:26:48 2010
@@ -281,7 +281,7 @@
         }
 
         try {
-            route = new HttpRoute(TARGET1, null, chain4, false,
+            new HttpRoute(TARGET1, null, chain4, false,
                                   TunnelType.PLAIN, LayerType.PLAIN);
             fail("invalid proxy chain (4) not detected");
         } catch (IllegalArgumentException iax) {
@@ -566,7 +566,7 @@
 
         // this constructor REQUIRES a proxy to be specified
         try {
-            route = new HttpRoute(TARGET1, LOCAL61, null, false);
+            new HttpRoute(TARGET1, LOCAL61, null, false);
             fail("missing proxy not detected");
         } catch (IllegalArgumentException iax) {
             // expected

Modified: httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/conn/routing/TestRouteTracker.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/conn/routing/TestRouteTracker.java?rev=899962&r1=899961&r2=899962&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/conn/routing/TestRouteTracker.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/conn/routing/TestRouteTracker.java
Sat Jan 16 14:26:48 2010
@@ -132,7 +132,7 @@
 
         rt = null;
         try {
-            rt = new RouteTracker(null, LOCAL41);
+            new RouteTracker(null, LOCAL41);
             fail("null target not detected");
         } catch (IllegalArgumentException iax) {
             // expected
@@ -188,7 +188,7 @@
 
         rt = null;
         try {
-            rt = new RouteTracker(null);
+            new RouteTracker(null);
             fail("null route not detected");
         } catch (NullPointerException npx) {
             // expected

Modified: httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/impl/conn/TestTSCCMNoServer.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/impl/conn/TestTSCCMNoServer.java?rev=899962&r1=899961&r2=899962&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/impl/conn/TestTSCCMNoServer.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/impl/conn/TestTSCCMNoServer.java
Sat Jan 16 14:26:48 2010
@@ -164,7 +164,7 @@
         mgr.releaseConnection(conn, -1, null);
 
         try {
-            conn = getConnection(mgr, null);
+            getConnection(mgr, null);
             fail("null route not detected");
         } catch (IllegalArgumentException iax) {
             // expected
@@ -208,7 +208,7 @@
 
         // there should be a connection available now
         try {
-            conn2 = getConnection(mgr, route2, 100L, TimeUnit.MILLISECONDS);
+            getConnection(mgr, route2, 100L, TimeUnit.MILLISECONDS);
         } catch (ConnectionPoolTimeoutException cptx) {
             cptx.printStackTrace();
             fail("connection should have been available: " + cptx);
@@ -429,7 +429,7 @@
 
         // the manager is down, we should not be able to get a connection
         try {
-            conn = getConnection(mgr, route, 1L, TimeUnit.MILLISECONDS);
+            getConnection(mgr, route, 1L, TimeUnit.MILLISECONDS);
             fail("shut-down manager does not raise exception");
         } catch (IllegalStateException isx) {
             // expected



Mime
View raw message