use of gov.cms.qpp.test.annotations.ParameterizedAcceptanceTest in project qpp-conversion-tool by CMSgov.
the class ValidationApiFailureAcceptance method testBadPerformanceStart.
@ParameterizedAcceptanceTest
@MethodSource("getFailureScenarios")
void testBadPerformanceStart(String comparison, Map<String, String> override) {
String qrda = getQrda(override);
Response response = performRequest(qrda);
assertThat(response.getStatusCode()).isEqualTo(HttpStatus.UNPROCESSABLE_ENTITY.value());
AllErrors blah = response.getBody().as(AllErrors.class);
blah.getErrors().stream().flatMap(error -> error.getDetails().stream()).forEach(verifyDetail(comparison, qrda));
}
Aggregations