use of ee.jakarta.tck.ws.rs.common.webclient.http.HttpResponse in project jaxrs-api by eclipse-ee4j.
the class JAXRSClientIT method getReturnedNumber.
// ///////////////////////////////////////////////////////////////////////
protected int getReturnedNumber() throws Fault {
HttpResponse response = _testCase.getResponse();
String body;
try {
body = response.getResponseBodyAsString();
} catch (IOException e) {
throw new Fault(e);
}
return Integer.parseInt(body);
}
Aggregations