fix network ACL unit test

This commit is contained in:
Kishan Kavala 2013-12-23 17:27:16 +05:30
parent 0335009a1e
commit cca60cd86d

View File

@ -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));