Unused variables
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@899962 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
43ef63586f
commit
0198742071
|
@ -281,7 +281,7 @@ public class TestHttpRoute extends TestCase {
|
|||
}
|
||||
|
||||
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 @@ public class TestHttpRoute extends TestCase {
|
|||
|
||||
// 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
|
||||
|
|
|
@ -132,7 +132,7 @@ public class TestRouteTracker extends TestCase {
|
|||
|
||||
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 @@ public class TestRouteTracker extends TestCase {
|
|||
|
||||
rt = null;
|
||||
try {
|
||||
rt = new RouteTracker(null);
|
||||
new RouteTracker(null);
|
||||
fail("null route not detected");
|
||||
} catch (NullPointerException npx) {
|
||||
// expected
|
||||
|
|
|
@ -164,7 +164,7 @@ public class TestTSCCMNoServer extends TestCase {
|
|||
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 @@ public class TestTSCCMNoServer extends TestCase {
|
|||
|
||||
// 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 @@ public class TestTSCCMNoServer extends TestCase {
|
|||
|
||||
// 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
|
||||
|
|
Loading…
Reference in New Issue