return true;
}
};
IServer server = new Server(dh);
server.start();
HttpClient httpClient = new HttpClient();
GetRequest request = new GetRequest("http://localhost:" + server.getLocalPort() + "/test");
ResponseHandler respHdl = new ResponseHandler();
httpClient.send(request, respHdl);
while (respHdl.getResponse() == null) {
QAUtil.sleep(100);
}
IHttpResponse response = respHdl.getResponse();
Assert.assertEquals(200, response.getStatus());
Assert.assertEquals("12345", response.getBlockingBody().readString());
httpClient.close();
server.close();
}