diff --git a/hapi-fhir-jpaserver-empi/src/test/java/ca/uhn/fhir/jpa/empi/interceptor/EmpiStorageInterceptorIT.java b/hapi-fhir-jpaserver-empi/src/test/java/ca/uhn/fhir/jpa/empi/interceptor/EmpiStorageInterceptorIT.java index e7fc8f65d62..56b0bebbc76 100644 --- a/hapi-fhir-jpaserver-empi/src/test/java/ca/uhn/fhir/jpa/empi/interceptor/EmpiStorageInterceptorIT.java +++ b/hapi-fhir-jpaserver-empi/src/test/java/ca/uhn/fhir/jpa/empi/interceptor/EmpiStorageInterceptorIT.java @@ -242,8 +242,10 @@ public class EmpiStorageInterceptorIT extends BaseEmpiR4Test { } @Test - public void testChecksOnlyApplyToRelevantResourceTypes() { + public void testInterceptorHandlesNonEmpiResources() { setPreventEidUpdates(true); + + //Create some arbitrary resource. SearchParameter fooSp = new SearchParameter(); fooSp.setCode("foo"); fooSp.addBase("Bundle"); @@ -254,9 +256,7 @@ public class EmpiStorageInterceptorIT extends BaseEmpiR4Test { fooSp.setStatus(org.hl7.fhir.r4.model.Enumerations.PublicationStatus.ACTIVE); myEmpiHelper.doCreateResource(fooSp, true); - fooSp.setXpathUsage(SearchParameter.XPathUsageType.PHONETIC); - myEmpiHelper.doUpdateResource(fooSp, true); }