{
// Null query parameter
ClientRequest request = new ClientRequest(generateURL("/post"));
request.accept(MediaType.APPLICATION_XML);
ClientResponse<?> response = request.post();
ViolationReport report = response.getEntity(ViolationReport.class);
System.out.println("report: " + report.toString());
countViolations(report, 1, 0, 0, 0, 1, 0);
}
{
// Null return value
ClientRequest request = new ClientRequest(generateURL("/get"));
request.accept(MediaType.APPLICATION_XML);
ClientResponse<?> response = request.get();
ViolationReport report = response.getEntity(ViolationReport.class);
System.out.println("report: " + report.toString());
countViolations(report, 1, 0, 0, 0, 0, 1);
}
after();
}