mirror of
https://github.com/hapifhir/hapi-fhir.git
synced 2025-02-16 09:55:09 +00:00
Test fixes
This commit is contained in:
parent
b463b072c8
commit
8d0d75356e
@ -650,8 +650,8 @@ public class FhirInstanceValidatorR5Test {
|
|||||||
|
|
||||||
ValidationResult output = myVal.validateWithResult(input);
|
ValidationResult output = myVal.validateWithResult(input);
|
||||||
List<SingleValidationMessage> res = logResultsAndReturnNonInformationalOnes(output);
|
List<SingleValidationMessage> res = logResultsAndReturnNonInformationalOnes(output);
|
||||||
assertEquals(1, res.size(), output.toString());
|
assertEquals(2, res.size(), output.toString());
|
||||||
assertEquals("A code with no system has no defined meaning. A system should be provided", output.getMessages().get(0).getMessage());
|
assertEquals("A code with no system has no defined meaning. A system should be provided", output.getMessages().get(1).getMessage());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@ -841,9 +841,10 @@ public class FhirInstanceValidatorR5Test {
|
|||||||
"</Observation>";
|
"</Observation>";
|
||||||
ValidationResult output = myVal.validateWithResult(input);
|
ValidationResult output = myVal.validateWithResult(input);
|
||||||
logResultsAndReturnAll(output);
|
logResultsAndReturnAll(output);
|
||||||
assertEquals(
|
assertThat(
|
||||||
"The value provided ('notvalidcode') is not in the value set http://hl7.org/fhir/ValueSet/observation-status|4.5.0 (http://hl7.org/fhir/ValueSet/observation-status), and a code is required from this value set) (error message = Unknown code 'notvalidcode')",
|
output.getMessages().get(0).getMessage(),
|
||||||
output.getMessages().get(0).getMessage());
|
containsString("The value provided ('notvalidcode') is not in the value set http://hl7.org/fhir/ValueSet/observation-status")
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
Loading…
x
Reference in New Issue
Block a user