121122123124125126127128129130131
System.out.println( "get = " + response ); assertEquals(response.trim(), String.valueOf( clientsCount * requestsCount ) ); } finally { client.stop(); } } finally { server2.stop();
8485868788899091929394
assertNotSame(sessionCookie, renewSessionCookie); assertTrue(testListener.isCalled()); } finally { client.stop(); server.stop(); } }
6970717273747576777879
ContentResponse response = client.GET("http://localhost:" + port + contextA + servletMapping); assertEquals(HttpServletResponse.SC_OK,response.getStatus()); } finally { client.stop(); } } finally { server.stop();
6061626364656667686970
ContentResponse response = client.GET("http://localhost:" + port + contextPath + servletMapping + "?action=reenter&port=" + port + "&path=" + contextPath + servletMapping); assertEquals(HttpServletResponse.SC_OK,response.getStatus()); } finally { client.stop(); } } finally { server.stop();
105106107108109110111112113114115
assertEquals(HttpServletResponse.SC_OK,resp.getStatus()); assertEquals("true",session.getAttribute("reentrant")); } finally { client.stop(); } } catch (Exception x) { throw new ServletException(x);
8687888990919293949596
assertEquals(HttpServletResponse.SC_OK,responseB.getStatus()); assertEquals(servletA.sessionId, servletB.sessionId); } finally { client.stop(); } } finally { server.stop();
8990919293949596979899
response = request.send(); assertEquals(HttpServletResponse.SC_OK,response.getStatus()); } finally { client.stop(); } } finally { server.stop();
99100101102103104105106107108109
159160161162163164165166167168169
String content = response.getContentAsString(); assertEquals(body, content); } finally { httpClient.stop(); } } @Test public void testTwoExchangesViaSSL() throws Exception
202203204205206207208209210211212
content = response2.getContentAsString(); assertEquals(body, content); } finally { httpClient.stop(); } } @Test public void testTwoConcurrentExchangesViaSSL() throws Exception