use of org.apache.catalina.nonblocking.TestNonBlockingAPI.DataWriter in project tomcat by apache.
the class TesterAjpNonBlockingClient method doTestAJPNonBlockingRead.
@Test
public void doTestAJPNonBlockingRead() throws Exception {
Map<String, List<String>> resHeaders = new HashMap<>();
ByteChunk out = new ByteChunk();
int rc = postUrl(true, new DataWriter(2000), "http://localhost" + "/examples/servlets/nonblocking/bytecounter", out, resHeaders, null);
System.out.println(out.toString());
Assert.assertEquals(HttpServletResponse.SC_OK, rc);
}
Aggregations