Skip to content
Permalink
Browse files
Hack to get the tests working, but I'll have to find a better solution.
  • Loading branch information
mifosio-04-04-2018 committed May 21, 2017
1 parent 5cc7143 commit d193cd1a0c85505589a1f7c7c5a29ae99ab4e799
Showing 2 changed files with 7 additions and 1 deletion.
@@ -23,6 +23,7 @@
import io.mifos.core.test.fixture.mariadb.MariaDBInitializer;
import io.mifos.core.test.listener.EnableEventRecording;
import io.mifos.core.test.listener.EventRecorder;
import io.mifos.identity.api.v1.client.IdentityManager;
import io.mifos.rhythm.api.v1.client.RhythmManager;
import io.mifos.rhythm.api.v1.domain.Beat;
import io.mifos.rhythm.api.v1.events.BeatEvent;
@@ -111,6 +112,9 @@ public Logger logger() {
@MockBean
BeatPublisherService beatPublisherServiceSpy;

@MockBean
IdentityManager identityManager;

@Before
public void prepTest() {
userContext = tenantApplicationSecurityEnvironment.createAutoUserContext(TEST_USER);
@@ -31,6 +31,7 @@
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.cloud.netflix.ribbon.RibbonClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
@@ -55,7 +56,8 @@
@EnableServiceException
@EnableScheduling
@EnableTenantContext
@EnablePermissionRequestingFeignClient
@EnablePermissionRequestingFeignClient(feignClasses = {ApplicationPermissionRequestCreator.class})
@RibbonClient(name = "rhythm-v1")
@EnableApplicationName
@EnableFeignClients(clients = {ApplicationPermissionRequestCreator.class})
@ComponentScan({

0 comments on commit d193cd1

Please sign in to comment.