testing fixes

This commit is contained in:
Grahame Grieve 2024-06-18 17:16:44 +10:00
parent e91d8152b2
commit 31a7793c49
2 changed files with 3 additions and 1 deletions

View File

@ -463,6 +463,7 @@ public class ResourceElement {
}
public boolean has(String name) {
loadChildren();
for (ResourceElement e : children) {
if (name.equals(e.name())) {
return true;

View File

@ -38,8 +38,9 @@ public class NarrativeGeneratorTests {
private static RenderingContext rc;
@BeforeAll
public static void setUp() throws FHIRException {
public static void setUp() throws FHIRException, IOException {
rc = new RenderingContext(TestingUtilities.getSharedWorkerContext(), null, null, "http://hl7.org/fhir", "", null, ResourceRendererMode.END_USER, GenerationRules.VALID_RESOURCE);
rc.setDestDir(Utilities.path("[tmp]"));
}
@Test