fix test case
This commit is contained in:
parent
e998722d1b
commit
d857d546e5
|
@ -302,7 +302,7 @@ public class ValidationTestSuite implements IEvaluationContext, IValidatorResour
|
||||||
public Element fetch(Object appContext, String url) throws FHIRFormatError, DefinitionException, IOException, FHIRException {
|
public Element fetch(Object appContext, String url) throws FHIRFormatError, DefinitionException, IOException, FHIRException {
|
||||||
if (url.equals("Patient/test"))
|
if (url.equals("Patient/test"))
|
||||||
return new ObjectConverter(TestingUtilities.context()).convert(new Patient());
|
return new ObjectConverter(TestingUtilities.context()).convert(new Patient());
|
||||||
String filename = TestingUtilities.resourceNameToFile("validation-examples", url.replace("/", "-"));
|
String filename = TestingUtilities.resourceNameToFile("validation-examples", url.replace("/", "-").toLowerCase());
|
||||||
if (new File(filename+".json").exists())
|
if (new File(filename+".json").exists())
|
||||||
return Manager.makeParser(TestingUtilities.context(), FhirFormat.JSON).parse(new FileInputStream(filename+".json"));
|
return Manager.makeParser(TestingUtilities.context(), FhirFormat.JSON).parse(new FileInputStream(filename+".json"));
|
||||||
if (new File(filename+".xml").exists())
|
if (new File(filename+".xml").exists())
|
||||||
|
|
Loading…
Reference in New Issue