fix tests on unix

This commit is contained in:
Grahame Grieve 2019-09-15 10:04:15 +10:00
parent bf07cecfab
commit 977d8e71d5

View File

@ -76,7 +76,7 @@ public class LiquidEngineTests implements ILiquidEngineIcludeResolver {
private Resource loadResource() throws IOException, FHIRFormatError { private Resource loadResource() throws IOException, FHIRFormatError {
String name = test.get("focus").getAsString(); String name = test.get("focus").getAsString();
if (!resources.containsKey(name)) { if (!resources.containsKey(name)) {
String fn = TestingUtilities.resourceNameToFile(name.replace("/", "-")+".xml"); String fn = TestingUtilities.resourceNameToFile((name.replace("/", "-")+".xml").toLowerCase());
resources.put(name, new XmlParser().parse(new FileInputStream(fn))); resources.put(name, new XmlParser().parse(new FileInputStream(fn)));
} }
return resources.get(test.get("focus").getAsString()); return resources.get(test.get("focus").getAsString());