public boolean onData(INonBlockingConnection connection) throws IOException, BufferUnderflowException, ClosedChannelException, MaxReadSizeExceededException {
// do nothing
return false;
}
};
IServer server = new Server(dh);
server.start();
HttpClient httpClient = new HttpClient();
httpClient.setResponseTimeoutMillis(500);
NonThreadedResponseHandler rh = new NonThreadedResponseHandler();
httpClient.send(new GetRequest("http://localhost:" + server.getLocalPort() + "/"), rh);
QAUtil.sleep(1500);
Assert.assertTrue(rh.threadnameRef.get().startsWith("xHttpTimer"));
Assert.assertNull(rh.responseRef.get());