public ScanServerException(UniformInterfaceException cause) {
   super(parseErrorMsg(cause), cause);
   this.setStatus(Status.fromStatusCode(cause.getResponse().getStatus()));
 }
Ejemplo n.º 2
0
 private void assertResponseStatus(String path, Status expectedStatus) {
   ClientResponse response = get(path);
   assertEquals(expectedStatus.getStatusCode(), response.getStatus());
 }