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 {
|
try {
|
||||||
route = new HttpRoute(TARGET1, null, chain4, false,
|
new HttpRoute(TARGET1, null, chain4, false,
|
||||||
TunnelType.PLAIN, LayerType.PLAIN);
|
TunnelType.PLAIN, LayerType.PLAIN);
|
||||||
fail("invalid proxy chain (4) not detected");
|
fail("invalid proxy chain (4) not detected");
|
||||||
} catch (IllegalArgumentException iax) {
|
} catch (IllegalArgumentException iax) {
|
||||||
|
@ -566,7 +566,7 @@ public class TestHttpRoute extends TestCase {
|
||||||
|
|
||||||
// this constructor REQUIRES a proxy to be specified
|
// this constructor REQUIRES a proxy to be specified
|
||||||
try {
|
try {
|
||||||
route = new HttpRoute(TARGET1, LOCAL61, null, false);
|
new HttpRoute(TARGET1, LOCAL61, null, false);
|
||||||
fail("missing proxy not detected");
|
fail("missing proxy not detected");
|
||||||
} catch (IllegalArgumentException iax) {
|
} catch (IllegalArgumentException iax) {
|
||||||
// expected
|
// expected
|
||||||
|
|
|
@ -132,7 +132,7 @@ public class TestRouteTracker extends TestCase {
|
||||||
|
|
||||||
rt = null;
|
rt = null;
|
||||||
try {
|
try {
|
||||||
rt = new RouteTracker(null, LOCAL41);
|
new RouteTracker(null, LOCAL41);
|
||||||
fail("null target not detected");
|
fail("null target not detected");
|
||||||
} catch (IllegalArgumentException iax) {
|
} catch (IllegalArgumentException iax) {
|
||||||
// expected
|
// expected
|
||||||
|
@ -188,7 +188,7 @@ public class TestRouteTracker extends TestCase {
|
||||||
|
|
||||||
rt = null;
|
rt = null;
|
||||||
try {
|
try {
|
||||||
rt = new RouteTracker(null);
|
new RouteTracker(null);
|
||||||
fail("null route not detected");
|
fail("null route not detected");
|
||||||
} catch (NullPointerException npx) {
|
} catch (NullPointerException npx) {
|
||||||
// expected
|
// expected
|
||||||
|
|
|
@ -164,7 +164,7 @@ public class TestTSCCMNoServer extends TestCase {
|
||||||
mgr.releaseConnection(conn, -1, null);
|
mgr.releaseConnection(conn, -1, null);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
conn = getConnection(mgr, null);
|
getConnection(mgr, null);
|
||||||
fail("null route not detected");
|
fail("null route not detected");
|
||||||
} catch (IllegalArgumentException iax) {
|
} catch (IllegalArgumentException iax) {
|
||||||
// expected
|
// expected
|
||||||
|
@ -208,7 +208,7 @@ public class TestTSCCMNoServer extends TestCase {
|
||||||
|
|
||||||
// there should be a connection available now
|
// there should be a connection available now
|
||||||
try {
|
try {
|
||||||
conn2 = getConnection(mgr, route2, 100L, TimeUnit.MILLISECONDS);
|
getConnection(mgr, route2, 100L, TimeUnit.MILLISECONDS);
|
||||||
} catch (ConnectionPoolTimeoutException cptx) {
|
} catch (ConnectionPoolTimeoutException cptx) {
|
||||||
cptx.printStackTrace();
|
cptx.printStackTrace();
|
||||||
fail("connection should have been available: " + cptx);
|
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
|
// the manager is down, we should not be able to get a connection
|
||||||
try {
|
try {
|
||||||
conn = getConnection(mgr, route, 1L, TimeUnit.MILLISECONDS);
|
getConnection(mgr, route, 1L, TimeUnit.MILLISECONDS);
|
||||||
fail("shut-down manager does not raise exception");
|
fail("shut-down manager does not raise exception");
|
||||||
} catch (IllegalStateException isx) {
|
} catch (IllegalStateException isx) {
|
||||||
// expected
|
// expected
|
||||||
|
|
Loading…
Reference in New Issue