|
5 | 5 | // to you under the Apache License, Version 2.0 (the |
6 | 6 | // "License"); you may not use this file except in compliance |
7 | 7 | // with the License. You may obtain a copy of the License at |
8 | | -// |
| 8 | +// |
9 | 9 | // http://www.apache.org/licenses/LICENSE-2.0 |
10 | 10 | // |
11 | 11 | // Unless required by applicable law or agreed to in writing, |
|
18 | 18 |
|
19 | 19 | import java.io.IOException; |
20 | 20 |
|
21 | | -import org.apache.cloudstack.framework.config.dao.ConfigurationDao; |
22 | | -import org.apache.cloudstack.lb.dao.ApplicationLoadBalancerRuleDao; |
23 | | -import org.apache.cloudstack.test.utils.SpringUtils; |
24 | | - |
25 | 21 | import org.mockito.Mockito; |
26 | 22 | import org.springframework.context.annotation.Bean; |
27 | 23 | import org.springframework.context.annotation.ComponentScan; |
|
32 | 28 | import org.springframework.core.type.classreading.MetadataReaderFactory; |
33 | 29 | import org.springframework.core.type.filter.TypeFilter; |
34 | 30 |
|
| 31 | +import org.apache.cloudstack.framework.config.dao.ConfigurationDao; |
| 32 | +import org.apache.cloudstack.lb.dao.ApplicationLoadBalancerRuleDao; |
| 33 | +import org.apache.cloudstack.test.utils.SpringUtils; |
| 34 | + |
35 | 35 | import com.cloud.agent.AgentManager; |
36 | | -import com.cloud.dc.dao.AccountVlanMapDaoImpl; |
37 | 36 | import com.cloud.dc.dao.DataCenterDao; |
| 37 | +import com.cloud.network.IpAddressManager; |
38 | 38 | import com.cloud.network.NetworkManager; |
39 | 39 | import com.cloud.network.NetworkModel; |
40 | 40 | import com.cloud.network.dao.NetworkDao; |
|
47 | 47 | import com.cloud.service.dao.ServiceOfferingDao; |
48 | 48 | import com.cloud.storage.dao.VMTemplateDao; |
49 | 49 | import com.cloud.user.AccountManager; |
| 50 | +import com.cloud.user.dao.AccountDao; |
50 | 51 | import com.cloud.utils.net.NetUtils; |
51 | 52 | import com.cloud.vm.VirtualMachineManager; |
52 | 53 | import com.cloud.vm.dao.DomainRouterDao; |
53 | 54 | import com.cloud.vm.dao.NicDao; |
54 | | -import com.cloud.user.dao.AccountDao; |
55 | 55 |
|
56 | 56 |
|
57 | 57 | @Configuration |
@@ -124,6 +124,11 @@ public NetworkManager networkManager() { |
124 | 124 | } |
125 | 125 |
|
126 | 126 | @Bean |
| 127 | + public IpAddressManager ipAddressManager() { |
| 128 | + return Mockito.mock(IpAddressManager.class); |
| 129 | + } |
| 130 | + |
| 131 | + @Bean |
127 | 132 | public ServiceOfferingDao serviceOfferingDao() { |
128 | 133 | return Mockito.mock(ServiceOfferingDao.class); |
129 | 134 | } |
|
0 commit comments