Validator fix
This commit is contained in:
parent
7bf2b0a0e9
commit
20c51add4f
|
@ -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());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue