diff --git a/org.hl7.fhir.r5/src/test/java/org/hl7/fhir/r5/test/ResourceTests.java b/org.hl7.fhir.r5/src/test/java/org/hl7/fhir/r5/test/ResourceTests.java index f4d97151a..e29bd0ed7 100644 --- a/org.hl7.fhir.r5/src/test/java/org/hl7/fhir/r5/test/ResourceTests.java +++ b/org.hl7.fhir.r5/src/test/java/org/hl7/fhir/r5/test/ResourceTests.java @@ -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()); + } }