mirror of https://github.com/apache/cloudstack.git
fix test
This commit is contained in:
parent
3027501d4b
commit
c325b8a64d
|
|
@ -18,6 +18,7 @@ package com.cloud.vpc;
|
|||
import com.cloud.exception.InvalidParameterValueException;
|
||||
import com.cloud.network.NetworkModel;
|
||||
import com.cloud.network.dao.NetworkDao;
|
||||
import com.cloud.network.dao.NsxProviderDao;
|
||||
import com.cloud.network.vpc.NetworkACLItemDao;
|
||||
import com.cloud.network.vpc.NetworkACLItemVO;
|
||||
import com.cloud.network.vpc.NetworkACLManager;
|
||||
|
|
@ -78,6 +79,8 @@ public class NetworkACLServiceTest extends TestCase {
|
|||
private NetworkACLItemDao _networkACLItemDao;
|
||||
@Inject
|
||||
private EntityManager _entityMgr;
|
||||
@Inject
|
||||
private NsxProviderDao nsxProviderDao;
|
||||
|
||||
private NetworkACLVO acl;
|
||||
private NetworkACLItemVO aclItem;
|
||||
|
|
@ -184,6 +187,9 @@ public class NetworkACLServiceTest extends TestCase {
|
|||
return Mockito.mock(VpcService.class);
|
||||
}
|
||||
|
||||
@Bean
|
||||
public NsxProviderDao nsxProviderDao() { return Mockito.mock(NsxProviderDao.class); }
|
||||
|
||||
public static class Library implements TypeFilter {
|
||||
@Override
|
||||
public boolean match(MetadataReader mdr, MetadataReaderFactory arg1) throws IOException {
|
||||
|
|
|
|||
Loading…
Reference in New Issue