-
- assertEquals("Not correct number of policy types added.", 2, policyTypes.size());
- assertEquals("Not correct type added.", type1, policyTypes.getType(PLOCY_TYPE_1_NAME));
- assertEquals("Not correct type added.", type2, policyTypes.getType(POLICY_TYPE_2_NAME));
+ assertEquals("Not correct no of types supported", 2, secondRic.getSupportedPolicyTypes().size());
+ assertTrue("Not correct type supported", secondRic.isSupportingType(type1));
+ assertTrue("Not correct type supported", secondRic.isSupportingType(type2));
+ assertEquals("Not correct no of managed nodes", 2, secondRic.getManagedNodes().size());
+ assertTrue("Not correct managed node", secondRic.isManaging(MANAGED_NODE_B));
+ assertTrue("Not correct managed node", secondRic.isManaging(MANAGED_NODE_C));