use of com.redhat.service.bridge.infra.api.models.responses.ErrorListResponse in project sandbox by 5733d9e2be6485d52ffa08870cabdee0.
the class ErrorsAPITest method testGetList.
@Test
@TestSecurity(user = TestConstants.DEFAULT_CUSTOMER_ID)
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