From d584cdb3a227acbeb79a5d8a674f7ba6f66b7da0 Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Fri, 13 Mar 2020 12:50:22 +1100 Subject: [PATCH] remove bogus version support from snapshot tests --- .../org/hl7/fhir/r5/test/SnapShotGenerationTests.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) 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());