mirror of
https://github.com/hapifhir/org.hl7.fhir.core.git
synced 2025-02-27 08:07:23 +00:00
remove bogus version support from snapshot tests
This commit is contained in:
parent
78d35ca8c1
commit
d584cdb3a2
@ -108,7 +108,6 @@ public class SnapShotGenerationTests {
|
|||||||
private boolean fail;
|
private boolean fail;
|
||||||
private boolean newSliceProcessing;
|
private boolean newSliceProcessing;
|
||||||
private boolean debug;
|
private boolean debug;
|
||||||
private String version;
|
|
||||||
|
|
||||||
private List<Rule> rules = new ArrayList<>();
|
private List<Rule> rules = new ArrayList<>();
|
||||||
private StructureDefinition source;
|
private StructureDefinition source;
|
||||||
@ -123,11 +122,6 @@ public class SnapShotGenerationTests {
|
|||||||
fail = "true".equals(test.getAttribute("fail"));
|
fail = "true".equals(test.getAttribute("fail"));
|
||||||
newSliceProcessing = !"false".equals(test.getAttribute("new-slice-processing"));
|
newSliceProcessing = !"false".equals(test.getAttribute("new-slice-processing"));
|
||||||
debug = "true".equals(test.getAttribute("debug"));
|
debug = "true".equals(test.getAttribute("debug"));
|
||||||
if (test.hasAttribute("version")) {
|
|
||||||
version = test.getAttribute("version");
|
|
||||||
} else {
|
|
||||||
version = "4.0.1";
|
|
||||||
}
|
|
||||||
|
|
||||||
id = test.getAttribute("id");
|
id = test.getAttribute("id");
|
||||||
include = test.getAttribute("include");
|
include = test.getAttribute("include");
|
||||||
@ -500,7 +494,7 @@ public class SnapShotGenerationTests {
|
|||||||
throw new Exception("URL mismatch on base: "+base.getUrl()+" wanting "+test.getSource().getBaseDefinition());
|
throw new Exception("URL mismatch on base: "+base.getUrl()+" wanting "+test.getSource().getBaseDefinition());
|
||||||
|
|
||||||
StructureDefinition output = test.getSource().copy();
|
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.setNewSlicingProcessing(test.isNewSliceProcessing());
|
||||||
pu.setThrowException(false);
|
pu.setThrowException(false);
|
||||||
pu.setDebug(test.isDebug());
|
pu.setDebug(test.isDebug());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user