Search in sources :

Example 1 with HttpException

use of wiremock.org.apache.http.HttpException in project concord-plugins by walmartlabs.

the class ApiExceptionTest method testThrowable.

@Test
public void testThrowable() {
    ApiException ex = new ApiException(new HttpException("http error"));
    assertTrue(ex.getMessage().contains("http error"));
}
Also used : HttpException(wiremock.org.apache.http.HttpException) ApiException(com.walmartlabs.concord.plugins.puppet.model.exception.ApiException) Test(org.junit.Test)

Aggregations

ApiException (com.walmartlabs.concord.plugins.puppet.model.exception.ApiException)1 Test (org.junit.Test)1 HttpException (wiremock.org.apache.http.HttpException)1