Consumer
Usage example :
Rule public ExceptionVerifier<HttpException> httpExceptionRule = new ExceptionVerifier<>();
@Test
public void test(){
httpExceptionRule.assertWith(e -> {
assertEquals(401, e.getResponse().status());
assertEquals("expected error message", e.getResponse().error(String.class));
});
}
1.1.14 - Copyright © 2018 Talend Component Kit Documentation