aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--appc-config/appc-flow-controller/provider/src/test/java/org/onap/appc/flow/controller/data/ActionIdentifierTest.java23
1 files changed, 17 insertions, 6 deletions
diff --git a/appc-config/appc-flow-controller/provider/src/test/java/org/onap/appc/flow/controller/data/ActionIdentifierTest.java b/appc-config/appc-flow-controller/provider/src/test/java/org/onap/appc/flow/controller/data/ActionIdentifierTest.java
index cc0ed3dd4..83a215779 100644
--- a/appc-config/appc-flow-controller/provider/src/test/java/org/onap/appc/flow/controller/data/ActionIdentifierTest.java
+++ b/appc-config/appc-flow-controller/provider/src/test/java/org/onap/appc/flow/controller/data/ActionIdentifierTest.java
@@ -62,16 +62,27 @@ public class ActionIdentifierTest {
@Test
public void testEquals() {
ActionIdentifier actionId1 = new ActionIdentifier();
+ assertTrue(actionId1.equals(actionId1));
+ assertFalse(actionId1.equals(null));
+ assertFalse(actionId1.equals(""));
ActionIdentifier actionId2 = new ActionIdentifier();
-
- actionId1.setVnfcName("vnfcName");
+ actionId2.setVnfId("other_vnfId");
+ assertFalse(actionId1.equals(actionId2));
actionId1.setVnfId("vnfId");
- actionId1.setVserverId("vserverId");
- actionId2.setVnfcName("vnfcName");
+ assertFalse(actionId1.equals(actionId2));
actionId2.setVnfId("vnfId");
+
+ actionId2.setVnfcName("other_vnfcName");
+ assertFalse(actionId1.equals(actionId2));
+ actionId1.setVnfcName("vnfc_name");
+ assertFalse(actionId1.equals(actionId2));
+ actionId2.setVnfcName("vnfc_name");
+ actionId2.setVserverId("other_vserverId");
+ assertFalse(actionId1.equals(actionId2));
+ actionId1.setVserverId("vserverId");
+ assertFalse(actionId1.equals(actionId2));
actionId2.setVserverId("vserverId");
- assertEquals(actionId1,actionId2);
- assertEquals(actionId2,actionId1);
+ assertEquals(actionId2, actionId1);
}
@Test