hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1023978 - /httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/conn/routing/TestHttpRoute.java
Date Mon, 18 Oct 2010 20:13:01 GMT
Author: sebb
Date: Mon Oct 18 20:13:01 2010
New Revision: 1023978

URL: http://svn.apache.org/viewvc?rev=1023978&view=rev
Log:
Simplify and eliminate boxing warnings

Modified:
    httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/conn/routing/TestHttpRoute.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=1023978&r1=1023977&r2=1023978&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
Mon Oct 18 20:13:01 2010
@@ -105,12 +105,9 @@ public class TestHttpRoute {
                      PROXY3, route.getHopTarget(2));
         Assert.assertEquals("wrong hop 3",
                      TARGET1, route.getHopTarget(3));
-        Assert.assertEquals("wrong flag: secured",
-                     false, route.isSecure());
-        Assert.assertEquals("wrong flag: tunnelled",
-                     false, route.isTunnelled());
-        Assert.assertEquals("wrong flag: layered",
-                     false, route.isLayered());
+        Assert.assertFalse("wrong flag: secured", route.isSecure());
+        Assert.assertFalse("wrong flag: tunnelled", route.isTunnelled());
+        Assert.assertFalse("wrong flag: layered", route.isLayered());
 
         String routestr = route.toString();
         Assert.assertTrue("missing target in toString",



Mime
View raw message