git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@884424
13f79535-47bb-0310-9956-
ffa450edef68
proxy = new HttpProxyService()
.withHttpClient(testClient);
testProxy.setPort(port);
- testProxy.setDebugHttp(true);
- testProxy.setDebug(true);
+// testProxy.setDebugHttp(true);
+// testProxy.setDebug(true);
// dispatcher rejects 'http://'
testProxy.setHttpService(proxy);
httpClient.sendRequest();
- try {
- httpClient.readAll(bodyRecvBuffer, to);
- } catch (Throwable t) {
- t.printStackTrace();
- return;
- }
- fail("Error");
+ httpClient.readAll(bodyRecvBuffer, to);
+ assertEquals(0, bodyRecvBuffer.remaining());
}
}