270271272273274275276277278279280
String content2 = response1.getContentAsString(); assertEquals(body1, content2); } finally { httpClient.stop(); } } @Test public void testProxyDown() throws Exception
302303304305306307308309310311312
{ Assert.assertThat(x.getCause(), Matchers.instanceOf(ConnectException.class)); } finally { httpClient.stop(); } } @Test public void testServerDown() throws Exception
334335336337338339340341342343344
{ // Expected } finally { httpClient.stop(); } } @Test public void testProxyClosesConnection() throws Exception
368369370371372373374375376377378
{ // Expected } finally { httpClient.stop(); } } @Test @Ignore("External Proxy Server no longer stable enough for testing")
405406407408409410411412413414415
.send(); assertEquals(HttpStatus.OK_200, response.getStatus()); } finally { httpClient.stop(); } } private static class ServerHandler extends AbstractHandler {
153154155156157158159160161162163
// Thread.sleep(320000); } finally { client.stop(); } } finally { server1.stop();
116117118119120121122123124125126
A_VALUE.assertUnbindsEquals(1); } finally { client.stop(); } } finally { server.stop();
111112113114115116117118119120121
ContentResponse response2 = request.send(); assertEquals(HttpServletResponse.SC_OK,response2.getStatus()); } finally { client.stop(); } } finally { server.stop();
109110111112113114115116117118119
assertEquals(HttpServletResponse.SC_OK,response2.getStatus()); } finally { client.stop(); } } finally { server1.stop();
113114115116117118119120121122123
response = request.send(); assertEquals(HttpServletResponse.SC_OK,response.getStatus()); } finally { client.stop(); } } finally { server.stop();