cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kis...@apache.org
Subject [3/3] git commit: updated refs/heads/master to cca60cd
Date Mon, 23 Dec 2013 11:57:51 GMT
fix network ACL unit test


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/cca60cd8
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/cca60cd8
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/cca60cd8

Branch: refs/heads/master
Commit: cca60cd86dc06bb292e9e90ae1661d1f2c71089f
Parents: 0335009
Author: Kishan Kavala <kishan@cloud.com>
Authored: Mon Dec 23 17:27:16 2013 +0530
Committer: Kishan Kavala <kishan@cloud.com>
Committed: Mon Dec 23 17:27:16 2013 +0530

----------------------------------------------------------------------
 server/test/com/cloud/vpc/NetworkACLServiceTest.java | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/cca60cd8/server/test/com/cloud/vpc/NetworkACLServiceTest.java
----------------------------------------------------------------------
diff --git a/server/test/com/cloud/vpc/NetworkACLServiceTest.java b/server/test/com/cloud/vpc/NetworkACLServiceTest.java
index 1dd1497..786789f 100644
--- a/server/test/com/cloud/vpc/NetworkACLServiceTest.java
+++ b/server/test/com/cloud/vpc/NetworkACLServiceTest.java
@@ -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));


Mime
View raw message