package ca.uhn.fhir.jpa.subscription.module.config;

import ca.uhn.fhir.jpa.searchparam.registry.ISearchParamProvider;
import ca.uhn.fhir.jpa.subscription.module.cache.ISubscriptionProvider;
import org.springframework.context.annotation.*;

@Configuration
@Import(TestSubscriptionConfig.class)
public class TestSubscriptionDstu3Config extends SubscriptionDstu3Config {
	@Bean
	@Primary
	public ISearchParamProvider searchParamProvider() {
		return new MockFhirClientSearchParamProvider();
	}

	@Bean
	@Primary
	public ISubscriptionProvider subsriptionProvider() {
		return new MockFhirClientSubscriptionProvider();
	}

}

@@ -46,16 +46,57 @@
 onfig;%0A%0A
+import ca.uhn.fhir.jpa.api.IDaoRegistry;%0A
 import c
@@ -149,24 +149,24 @@
 amProvider;%0A
-
 import ca.uh
@@ -275,16 +275,145 @@
 ion.*;%0A%0A
+import static org.mockito.ArgumentMatchers.any;%0Aimport static org.mockito.Mockito.mock;%0Aimport static org.mockito.Mockito.when;%0A%0A
 @Configu
@@ -782,10 +782,190 @@
 ();%0A%09%7D%0A%0A
+%09@Bean%0A%09public IDaoRegistry daoRegistry() %7B%0A%09%09IDaoRegistry retVal = mock(IDaoRegistry.class);%0A%09%09when(retVal.isResourceTypeSupported(any())).thenReturn(true);%0A%09%09return retVal;%0A%09%7D%0A%09%0A
 %7D%0A

Test fix