Enable AsyncInstantiationBusinessLogic tests
[vid.git] / vid-app-common / src / test / java / org / onap / vid / config / MockedAaiClientAndFeatureManagerConfig.java
1 package org.onap.vid.config;
2
3 import org.mockito.Mockito;
4 import org.onap.vid.aai.AaiClientInterface;
5 import org.onap.vid.services.CloudOwnerService;
6 import org.onap.vid.services.CloudOwnerServiceImpl;
7 import org.springframework.context.annotation.Bean;
8 import org.springframework.context.annotation.Configuration;
9 import org.togglz.core.manager.FeatureManager;
10
11 @Configuration
12 public class MockedAaiClientAndFeatureManagerConfig {
13
14     @Bean
15     public FeatureManager featureManager() {
16         return Mockito.mock(FeatureManager.class);
17     }
18
19     @Bean
20     public CloudOwnerService cloudOwnerService(AaiClientInterface aaiClient, FeatureManager featureManager) {
21         return new CloudOwnerServiceImpl(aaiClient, featureManager);
22     }
23
24     @Bean
25     public AaiClientInterface aaiClient() {
26         return Mockito.mock(AaiClientInterface.class);
27     }
28 }