mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
fix network ACL unit test
This commit is contained in:
parent
0335009a1e
commit
cca60cd86d
@ -188,6 +188,7 @@ public class NetworkACLServiceTest extends TestCase {
|
||||
@Test
|
||||
public void testDeleteACLItem() throws Exception {
|
||||
Mockito.when(_networkACLItemDao.findById(Matchers.anyLong())).thenReturn(aclItem);
|
||||
Mockito.when(_networkAclMgr.getNetworkACL(Matchers.anyLong())).thenReturn(acl);
|
||||
Mockito.when(_networkAclMgr.revokeNetworkACLItem(Matchers.anyLong())).thenReturn(true);
|
||||
Mockito.when(_entityMgr.findById(Mockito.eq(Vpc.class), Mockito.anyLong())).thenReturn(new VpcVO());
|
||||
assertTrue(_aclService.revokeNetworkACLItem(1L));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user