blob: 83b1259499d0c31fa199e20522c4a89877c93866 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
package org.onap.vid.config;
import org.mockito.Mockito;
import org.onap.vid.aai.AaiClientInterface;
import org.onap.vid.services.CloudOwnerService;
import org.onap.vid.services.CloudOwnerServiceImpl;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.togglz.core.manager.FeatureManager;
@Configuration
public class MockedAaiClientAndFeatureManagerConfig {
@Bean
public FeatureManager featureManager() {
return Mockito.mock(FeatureManager.class);
}
@Bean
public CloudOwnerService cloudOwnerService(AaiClientInterface aaiClient, FeatureManager featureManager) {
return new CloudOwnerServiceImpl(aaiClient, featureManager);
}
@Bean
public AaiClientInterface aaiClient() {
return Mockito.mock(AaiClientInterface.class);
}
}
|