diff --git a/org.hl7.fhir.r5/src/test/java/org/hl7/fhir/r5/test/SnapShotGenerationTests.java b/org.hl7.fhir.r5/src/test/java/org/hl7/fhir/r5/test/SnapShotGenerationTests.java index e61e74d2e..7323dcdf4 100644 --- a/org.hl7.fhir.r5/src/test/java/org/hl7/fhir/r5/test/SnapShotGenerationTests.java +++ b/org.hl7.fhir.r5/src/test/java/org/hl7/fhir/r5/test/SnapShotGenerationTests.java @@ -108,7 +108,6 @@ public class SnapShotGenerationTests { private boolean fail; private boolean newSliceProcessing; private boolean debug; - private String version; private List rules = new ArrayList<>(); private StructureDefinition source; @@ -123,11 +122,6 @@ public class SnapShotGenerationTests { fail = "true".equals(test.getAttribute("fail")); newSliceProcessing = !"false".equals(test.getAttribute("new-slice-processing")); debug = "true".equals(test.getAttribute("debug")); - if (test.hasAttribute("version")) { - version = test.getAttribute("version"); - } else { - version = "4.0.1"; - } id = test.getAttribute("id"); include = test.getAttribute("include"); @@ -500,7 +494,7 @@ public class SnapShotGenerationTests { throw new Exception("URL mismatch on base: "+base.getUrl()+" wanting "+test.getSource().getBaseDefinition()); StructureDefinition output = test.getSource().copy(); - ProfileUtilities pu = new ProfileUtilities(TestingUtilities.context(test.version), messages , new TestPKP()); + ProfileUtilities pu = new ProfileUtilities(TestingUtilities.context(), messages , new TestPKP()); pu.setNewSlicingProcessing(test.isNewSliceProcessing()); pu.setThrowException(false); pu.setDebug(test.isDebug());