diff options
author | Sandeep J <sandeejh@in.ibm.com> | 2019-03-21 20:15:38 +0530 |
---|---|---|
committer | Joss Armstrong <joss.armstrong@ericsson.com> | 2019-03-22 17:23:16 +0000 |
commit | f9bbd30915d5bc66131baacb1e2f7bdf3cdcdb8f (patch) | |
tree | 5e2719be356cb6cf68f075da32a4fdccca180ad1 | |
parent | 1e538efce498a934d52e074f095838229b9cd1af (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>
-rw-r--r-- | appc-core/appc-common-bundle/src/test/java/org/onap/appc/util/TestStructuredPropertyHelper.java | 7 |
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() |