Validator fix

This commit is contained in:
James Agnew 2018-05-09 19:34:10 -04:00
parent 7bf2b0a0e9
commit 20c51add4f
1 changed files with 3 additions and 2 deletions

View File

@ -53,8 +53,9 @@ public class ValidatorAcrossVersionsTest {
ValidationResult result = val.validateWithResult(resp);
ourLog.info(ctxDstu2.newJsonParser().setPrettyPrint(true).encodeResourceToString(result.toOperationOutcome()));
assertEquals(1, result.getMessages().size());
assertEquals("Element '/f:QuestionnaireResponse.status': minimum required = 1, but only found 0", result.getMessages().get(0).getMessage());
assertEquals(2, result.getMessages().size());
assertEquals("No questionnaire is identified, so no validation can be performed against the base questionnaire", result.getMessages().get(0).getMessage());
assertEquals("Profile http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse, Element 'QuestionnaireResponse.status': minimum required = 1, but only found 0", result.getMessages().get(1).getMessage());
}
}