From 1c70e970870613c099cd1ee2cff60d35fe4960a6 Mon Sep 17 00:00:00 2001 From: JasonRoberts-smile <85363818+JasonRoberts-smile@users.noreply.github.com> Date: Tue, 24 May 2022 12:24:08 -0400 Subject: [PATCH] fix build failure (#3639) * fix build failure * add missing cleanup --- .../ca/uhn/fhir/jpa/provider/r4/PatientEverythingR4Test.java | 1 + .../uhn/fhir/jpa/provider/r4/ResourceProviderExpungeR4Test.java | 2 ++ 2 files changed, 3 insertions(+) diff --git a/hapi-fhir-jpaserver-test-utilities/src/test/java/ca/uhn/fhir/jpa/provider/r4/PatientEverythingR4Test.java b/hapi-fhir-jpaserver-test-utilities/src/test/java/ca/uhn/fhir/jpa/provider/r4/PatientEverythingR4Test.java index ded41b87d4c..0c07b918198 100644 --- a/hapi-fhir-jpaserver-test-utilities/src/test/java/ca/uhn/fhir/jpa/provider/r4/PatientEverythingR4Test.java +++ b/hapi-fhir-jpaserver-test-utilities/src/test/java/ca/uhn/fhir/jpa/provider/r4/PatientEverythingR4Test.java @@ -65,6 +65,7 @@ public class PatientEverythingR4Test extends BaseResourceProviderR4Test { myDaoConfig.setEverythingIncludesFetchPageSize(new DaoConfig().getEverythingIncludesFetchPageSize()); myDaoConfig.setSearchPreFetchThresholds(new DaoConfig().getSearchPreFetchThresholds()); myDaoConfig.setAllowExternalReferences(new DaoConfig().isAllowExternalReferences()); + myDaoConfig.setAllowMultipleDelete(new DaoConfig().isAllowMultipleDelete()); } @Override diff --git a/hapi-fhir-jpaserver-test-utilities/src/test/java/ca/uhn/fhir/jpa/provider/r4/ResourceProviderExpungeR4Test.java b/hapi-fhir-jpaserver-test-utilities/src/test/java/ca/uhn/fhir/jpa/provider/r4/ResourceProviderExpungeR4Test.java index 46aedec0e9c..e990c5290a0 100644 --- a/hapi-fhir-jpaserver-test-utilities/src/test/java/ca/uhn/fhir/jpa/provider/r4/ResourceProviderExpungeR4Test.java +++ b/hapi-fhir-jpaserver-test-utilities/src/test/java/ca/uhn/fhir/jpa/provider/r4/ResourceProviderExpungeR4Test.java @@ -34,6 +34,7 @@ public class ResourceProviderExpungeR4Test extends BaseResourceProviderR4Test { @AfterEach public void afterDisableExpunge() { myDaoConfig.setExpungeEnabled(new DaoConfig().isExpungeEnabled()); + myDaoConfig.setAllowMultipleDelete(new DaoConfig().isAllowMultipleDelete()); myDaoConfig.setEnforceReferentialIntegrityOnDelete(false); } @@ -112,6 +113,7 @@ public class ResourceProviderExpungeR4Test extends BaseResourceProviderR4Test { @BeforeEach public void beforeEnableExpunge() { myDaoConfig.setExpungeEnabled(true); + myDaoConfig.setAllowMultipleDelete(true); } private IFhirResourceDao getDao(IIdType theId) {