summaryrefslogtreecommitdiffstats
path: root/appc-common/src
diff options
context:
space:
mode:
authorSandeep J <sandeejh@in.ibm.com>2018-08-03 18:36:41 +0530
committerTakamune Cho <tc012c@att.com>2018-08-03 20:56:34 +0000
commitf556f166a8d277c312ddba03c49c29822ec7736b (patch)
tree473590919f3a8894cee7a0f2ce5da856da15449e /appc-common/src
parentec023c04e725afde0ae880e46dd8c682b8591239 (diff)
added test case to TestStructuredPropertyHelper
to increase code coverage Issue-ID: APPC-1086 Change-Id: I00237d24ef2fac893e7c1867e4aa38ba026e9a16 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
Diffstat (limited to 'appc-common/src')
-rw-r--r--appc-common/src/test/java/org/onap/appc/util/TestStructuredPropertyHelper.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/appc-common/src/test/java/org/onap/appc/util/TestStructuredPropertyHelper.java b/appc-common/src/test/java/org/onap/appc/util/TestStructuredPropertyHelper.java
index c38ccef2c..11938f124 100644
--- a/appc-common/src/test/java/org/onap/appc/util/TestStructuredPropertyHelper.java
+++ b/appc-common/src/test/java/org/onap/appc/util/TestStructuredPropertyHelper.java
@@ -6,6 +6,8 @@
* ================================================================================
* Copyright (C) 2017 Amdocs
* =============================================================================
+ * Modifications Copyright (C) 2018 IBM.
+ * =============================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
@@ -232,4 +234,17 @@ public class TestStructuredPropertyHelper {
}
// System.out.println(nodes);
}
+
+ @Test
+ public void testToStringWithValue()
+ {
+ nodes = StructuredPropertyHelper.getStructuredProperties(properties, "node");
+ Node node = nodes.get(0);
+ node.setName("testName");
+ node.setValue("testValue");
+ String str= node.toString();
+ assertEquals("testName = testValue",str);
+ }
+
+
}