Test fix
This commit is contained in:
parent
6ebcceeb5c
commit
b650fdb9ea
|
@ -85,6 +85,8 @@ public class SubscriptionValidatingInterceptorTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testValidate_RestHook_NoEndpoint() {
|
public void testValidate_RestHook_NoEndpoint() {
|
||||||
|
when(myDaoRegistry.isResourceTypeSupported(eq("Patient"))).thenReturn(true);
|
||||||
|
|
||||||
Subscription subscription = new Subscription();
|
Subscription subscription = new Subscription();
|
||||||
subscription.setStatus(Subscription.SubscriptionStatus.ACTIVE);
|
subscription.setStatus(Subscription.SubscriptionStatus.ACTIVE);
|
||||||
subscription.setCriteria("Patient?identifier=foo");
|
subscription.setCriteria("Patient?identifier=foo");
|
||||||
|
@ -102,6 +104,8 @@ public class SubscriptionValidatingInterceptorTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testValidate_RestHook_NoType() {
|
public void testValidate_RestHook_NoType() {
|
||||||
|
when(myDaoRegistry.isResourceTypeSupported(eq("Patient"))).thenReturn(true);
|
||||||
|
|
||||||
Subscription subscription = new Subscription();
|
Subscription subscription = new Subscription();
|
||||||
subscription.setStatus(Subscription.SubscriptionStatus.ACTIVE);
|
subscription.setStatus(Subscription.SubscriptionStatus.ACTIVE);
|
||||||
subscription.setCriteria("Patient?identifier=foo");
|
subscription.setCriteria("Patient?identifier=foo");
|
||||||
|
|
Loading…
Reference in New Issue