hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rola...@apache.org
Subject svn commit: r606189 - /httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/conn/TestRouteTracker.java
Date Fri, 21 Dec 2007 13:12:19 GMT
Author: rolandw
Date: Fri Dec 21 05:12:18 2007
New Revision: 606189

URL: http://svn.apache.org/viewvc?rev=606189&view=rev
Log:
HTTPCLIENT-712: route tracker test coverage back to 100%

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

Modified: httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/conn/TestRouteTracker.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/conn/TestRouteTracker.java?rev=606189&r1=606188&r2=606189&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/conn/TestRouteTracker.java
(original)
+++ httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/conn/TestRouteTracker.java
Fri Dec 21 05:12:18 2007
@@ -564,7 +564,13 @@
         String rts = rt.toString();
         assertEquals("wrong flag connected: " + rts, c, rt.isConnected());
         assertEquals("wrong flag tunnelled: " + rts, t, rt.isTunnelled());
+        assertEquals("wrong enum tunnelled: " + rts,
+                     t ? TunnelType.TUNNELLED : TunnelType.PLAIN,
+                     rt.getTunnelType());
         assertEquals("wrong flag layered: "   + rts, l, rt.isLayered());
+        assertEquals("wrong enum layered: "   + rts,
+                     l ? LayerType.LAYERED : LayerType.PLAIN,
+                     rt.getLayerType());
         assertEquals("wrong flag secure: "    + rts, s, rt.isSecure());
     }
 



Mime
View raw message