Search in sources :

Example 1 with ResponseException

use of org.folio.rest.tools.client.exceptions.ResponseException in project raml-module-builder by folio-org.

the class RestRoutingTest method getResponseFailed.

@Test
void getResponseFailed() {
    Response response = ResponseDelegate.status(456).build();
    assertThat(RestRouting.getResponse(Future.failedFuture(new ResponseException(response))).getStatus(), is(456));
}
Also used : Response(javax.ws.rs.core.Response) ResponseException(org.folio.rest.tools.client.exceptions.ResponseException) Test(org.junit.jupiter.api.Test)

Aggregations

Response (javax.ws.rs.core.Response)1 ResponseException (org.folio.rest.tools.client.exceptions.ResponseException)1 Test (org.junit.jupiter.api.Test)1