summaryrefslogtreecommitdiffstats
path: root/appc-core
diff options
context:
space:
mode:
authorSandeep J <sandeejh@in.ibm.com>2019-03-21 20:15:38 +0530
committerJoss Armstrong <joss.armstrong@ericsson.com>2019-03-22 17:23:16 +0000
commitf9bbd30915d5bc66131baacb1e2f7bdf3cdcdb8f (patch)
tree5e2719be356cb6cf68f075da32a4fdccca180ad1 /appc-core
parent1e538efce498a934d52e074f095838229b9cd1af (diff)
added test cases to TestStructuredPropertyHelper
to increase code coverage Issue-ID: APPC-1086 Change-Id: Ic3204a6de7c7024cfba61f3aa63716b0533f9ae9 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
Diffstat (limited to 'appc-core')
-rw-r--r--appc-core/appc-common-bundle/src/test/java/org/onap/appc/util/TestStructuredPropertyHelper.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/appc-core/appc-common-bundle/src/test/java/org/onap/appc/util/TestStructuredPropertyHelper.java b/appc-core/appc-common-bundle/src/test/java/org/onap/appc/util/TestStructuredPropertyHelper.java
index 49ca5a152..2011aa77c 100644
--- a/appc-core/appc-common-bundle/src/test/java/org/onap/appc/util/TestStructuredPropertyHelper.java
+++ b/appc-core/appc-common-bundle/src/test/java/org/onap/appc/util/TestStructuredPropertyHelper.java
@@ -259,8 +259,11 @@ public class TestStructuredPropertyHelper {
Node node1 = new Node();
node1.setName("testName");
node1.setValue("testValue");
- assertTrue(node0.equals(node1));
- }
+ assertTrue(node0.equals(node1));
+ assertFalse(node0.equals(null));
+ node0.setValue(null);
+ assertFalse(node0.equals(node1));
+ }
@Test
public void testEqualsWithSameNameAndDifferentValue()