Test fix
This commit is contained in:
parent
2518d4e0be
commit
8d2b0ea1c3
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue