From b650fdb9ea7d09bdc1f9f811727e6d23bbf153ce Mon Sep 17 00:00:00 2001 From: jamesagnew Date: Tue, 30 Jun 2020 09:20:52 -0400 Subject: [PATCH] Test fix --- .../subscription/SubscriptionValidatingInterceptorTest.java | 4 ++++ 1 file changed, 4 insertions(+) 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");