use of org.hl7.fhir.r5.model.TestScript in project org.hl7.fhir.core by hapifhir.
the class SnapShotGenerationTests method data.
public static Stream<Arguments> data() throws IOException, FHIRFormatError {
SnapShotGenerationTestsContext context = new SnapShotGenerationTestsContext();
String contents = readFileFromClasspathAsString("snapshot-generation-tests.xml");
context.tests = (TestScript) new XmlParser().parse(contents);
context.checkTestsDetails();
List<Arguments> objects = new ArrayList<>();
for (TestScriptTestComponent e : context.tests.getTest()) {
objects.add(Arguments.of(e.getName(), e, context));
}
return objects.stream();
}
use of org.hl7.fhir.r5.model.TestScript in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeTestScriptTestActionComponent.
protected void composeTestScriptTestActionComponent(Complex parent, String parentType, String name, TestScript.TestActionComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "action", name, element, index);
if (element.hasOperation())
composeTestScriptSetupActionOperationComponent(t, "TestScript", "operation", element.getOperation(), -1);
if (element.hasAssert())
composeTestScriptSetupActionAssertComponent(t, "TestScript", "assert", element.getAssert(), -1);
}
Aggregations