use of com.redhat.service.smartevents.infra.api.models.responses.ErrorListResponse in project sandbox by 5733d9e2be6485d52ffa08870cabdee0.
the class ErrorsAPITest method testGetList.
@Test
void testGetList() {
ErrorListResponse response = given().contentType(ContentType.JSON).when().get(APIConstants.ERROR_API_BASE_PATH).as(ErrorListResponse.class);
assertThat(exceptionClasses).hasSize((int) response.getTotal());
assertThat(response.getItems().isEmpty()).isFalse();
for (ErrorResponse item : response.getItems()) {
assertThat(item).isEqualTo(given().contentType(ContentType.JSON).when().get(item.getHref()).as(ErrorResponse.class));
}
}
Aggregations