summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--appc-core/appc-common-bundle/src/test/java/org/onap/appc/util/TestStructuredPropertyHelper.java11
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));
+ }
}