adding unit-test for fhir version
This commit is contained in:
parent
eda25d018e
commit
8f959d5a3a
|
@ -12,6 +12,7 @@ import org.hl7.fhir.r5.model.CapabilityStatement;
|
|||
import org.hl7.fhir.r5.model.CodeSystem;
|
||||
import org.hl7.fhir.r5.model.CompartmentDefinition;
|
||||
import org.hl7.fhir.r5.model.ConceptMap;
|
||||
import org.hl7.fhir.r5.model.Constants;
|
||||
import org.hl7.fhir.r5.model.ExampleScenario;
|
||||
import org.hl7.fhir.r5.model.GraphDefinition;
|
||||
import org.hl7.fhir.r5.model.ImplementationGuide;
|
||||
|
@ -70,4 +71,11 @@ class ResourceTests {
|
|||
String output = xml.composeString(res);
|
||||
assertEquals(TGT, output);
|
||||
}
|
||||
|
||||
@Test
|
||||
void testCapabilityStatementFhirVersion() {
|
||||
CapabilityStatement cap = new CapabilityStatement();
|
||||
cap.getFhirVersionElement().setValueAsString(Constants.VERSION);
|
||||
assertEquals(Constants.VERSION, cap.getFhirVersion().getDisplay());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue