diff options
author | Sandeep J <sandeejh@in.ibm.com> | 2019-03-01 17:05:41 +0530 |
---|---|---|
committer | Joss Armstrong <joss.armstrong@ericsson.com> | 2019-03-04 14:31:57 +0000 |
commit | 7316b093075f93adbe09bc50f9d54d88f677155d (patch) | |
tree | 3d495209bc6683dbc6007be65f9e1bb38a0572f1 /appc-core/appc-common-bundle/src/test | |
parent | d7422e0ef739a61cadd536da1967174562d053ad (diff) |
added test case to TestStructuredPropertyHelper
to increase code coverage
Issue-ID: APPC-1086
Change-Id: Ibc33a99c5e2ad26c1232eadde505071b58d1fb6b
Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
Diffstat (limited to 'appc-core/appc-common-bundle/src/test')
-rw-r--r-- | appc-core/appc-common-bundle/src/test/java/org/onap/appc/util/TestStructuredPropertyHelper.java | 11 |
1 files changed, 11 insertions, 0 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 8011d4e22..1a4527c70 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 @@ -286,4 +286,15 @@ public class TestStructuredPropertyHelper { node1.setValue("testValue"); assertFalse(node0.equals(node1)); } + + @Test + public void testCompareTo() + { + Node node0 = new Node(); + node0.setName("testName1"); + Node node1 = new Node(); + node1.setName("testName2"); + assertEquals(-1, node0.compareTo(node1)); + assertEquals(0, node0.compareTo(node0)); + } } |