This commit is contained in:
James Agnew 2019-08-08 15:50:28 -04:00
parent 2518d4e0be
commit 8d2b0ea1c3
1 changed files with 12 additions and 0 deletions

View File

@ -1,9 +1,14 @@
package ca.uhn.fhir.jpa.subscription.module.config;
import ca.uhn.fhir.jpa.api.IDaoRegistry;
import ca.uhn.fhir.jpa.searchparam.registry.ISearchParamProvider;
import ca.uhn.fhir.jpa.subscription.module.cache.ISubscriptionProvider;
import org.springframework.context.annotation.*;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
@Configuration
@Import(TestSubscriptionConfig.class)
public class TestSubscriptionDstu3Config extends SubscriptionDstu3Config {
@ -19,4 +24,11 @@ public class TestSubscriptionDstu3Config extends SubscriptionDstu3Config {
return new MockFhirClientSubscriptionProvider();
}
@Bean
public IDaoRegistry daoRegistry() {
IDaoRegistry retVal = mock(IDaoRegistry.class);
when(retVal.isResourceTypeSupported(any())).thenReturn(true);
return retVal;
}
}