diff --git a/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/subscription/SubscriptionValidatingInterceptorTest.java b/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/subscription/SubscriptionValidatingInterceptorTest.java index b15e699ce7d..bf8ee7f83c3 100644 --- a/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/subscription/SubscriptionValidatingInterceptorTest.java +++ b/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/subscription/SubscriptionValidatingInterceptorTest.java @@ -85,6 +85,8 @@ public class SubscriptionValidatingInterceptorTest { @Test public void testValidate_RestHook_NoEndpoint() { + when(myDaoRegistry.isResourceTypeSupported(eq("Patient"))).thenReturn(true); + Subscription subscription = new Subscription(); subscription.setStatus(Subscription.SubscriptionStatus.ACTIVE); subscription.setCriteria("Patient?identifier=foo"); @@ -102,6 +104,8 @@ public class SubscriptionValidatingInterceptorTest { @Test public void testValidate_RestHook_NoType() { + when(myDaoRegistry.isResourceTypeSupported(eq("Patient"))).thenReturn(true); + Subscription subscription = new Subscription(); subscription.setStatus(Subscription.SubscriptionStatus.ACTIVE); subscription.setCriteria("Patient?identifier=foo");