コード例 #1
0
 @Test
 public void testParametersNotNull() {
   assertNotNull(neutronSecurityGroup.getSecurityGroupID());
   assertNotNull(neutronSecurityGroup.getSecurityGroupName());
   assertNotNull(neutronSecurityGroup.getSecurityGroupDescription());
   assertNotNull(neutronSecurityGroup.getSecurityTenantID());
   assertNotNull(neutronSecurityGroup.getSecurityRules());
   assertNotNull(securityGroupAddedMock.getTimeStamp());
 }
コード例 #2
0
 @Test
 public void testVerifySecurityGroup() {
   assertEquals(neutronSecurityGroup.getSecurityGroupID(), SecurityGroupUtils.GROUP_ID.getValue());
   assertEquals(neutronSecurityGroup.getSecurityGroupName(), SecurityGroupUtils.GROUP_NAME);
   assertEquals(neutronSecurityGroup.getSecurityGroupDescription(), SecurityGroupUtils.GROUP_DESC);
   assertEquals(
       neutronSecurityGroup.getSecurityTenantID(), SecurityGroupUtils.TENANT_ID.getValue());
   assertEquals(neutronSecurityGroup.getSecurityRules().get(0), SecurityGroupUtils.FIRST_RULE);
   assertEquals(neutronSecurityGroup.getSecurityRules().get(1), SecurityGroupUtils.SECOND_RULE);
   assertTrue(securityGroupAddedMock instanceof SecurityGroupAdded);
 }