allow for profiles iiwth no derivation in test cases

This commit is contained in:
Grahame Grieve 2020-02-12 17:53:01 +11:00
parent 6ea5016da5
commit 3ca01a9659
1 changed files with 3 additions and 1 deletions

View File

@ -473,7 +473,9 @@ public class SnapShotGenerationTests {
pu.setNewSlicingProcessing(true);
pu.setIds(test.included, false);
StructureDefinition base = TestingUtilities.context().fetchResource(StructureDefinition.class, test.included.getBaseDefinition());
pu.generateSnapshot(base, test.included, test.included.getUrl(), "http://test.org/profile", test.included.getName());
if (base != null) {
pu.generateSnapshot(base, test.included, test.included.getUrl(), "http://test.org/profile", test.included.getName());
}
if (!TestingUtilities.context().hasResource(StructureDefinition.class, test.included.getUrl()))
TestingUtilities.context().cacheResource(test.included);
int ec = 0;