Simplify and eliminate boxing warnings

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1023978 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastian Bazley 2010-10-18 20:13:01 +00:00
parent fa172d971d
commit 15c154c8ac
1 changed files with 3 additions and 6 deletions

View File

@ -105,12 +105,9 @@ public class TestHttpRoute {
PROXY3, route.getHopTarget(2)); PROXY3, route.getHopTarget(2));
Assert.assertEquals("wrong hop 3", Assert.assertEquals("wrong hop 3",
TARGET1, route.getHopTarget(3)); TARGET1, route.getHopTarget(3));
Assert.assertEquals("wrong flag: secured", Assert.assertFalse("wrong flag: secured", route.isSecure());
false, route.isSecure()); Assert.assertFalse("wrong flag: tunnelled", route.isTunnelled());
Assert.assertEquals("wrong flag: tunnelled", Assert.assertFalse("wrong flag: layered", route.isLayered());
false, route.isTunnelled());
Assert.assertEquals("wrong flag: layered",
false, route.isLayered());
String routestr = route.toString(); String routestr = route.toString();
Assert.assertTrue("missing target in toString", Assert.assertTrue("missing target in toString",