summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorSteve Smokowski <ss835w@att.com>2019-01-12 13:14:14 +0000
committerGerrit Code Review <gerrit@onap.org>2019-01-12 13:14:14 +0000
commit06a568ebb67a1da72d33aa47eccb729b227bbe62 (patch)
treeed13295b18ec61c4a5680af5649c63d57067c410 /common
parent1771c8f9870688efdf8a4086cda3fdb872d9ccd4 (diff)
parent209f79396a218a8bb3c2acf105811ebe8b0b5142 (diff)
Merge "Quality of Life logging improvements"
Diffstat (limited to 'common')
-rw-r--r--common/src/test/java/org/onap/so/client/aai/AAIPatchConverterTest.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/common/src/test/java/org/onap/so/client/aai/AAIPatchConverterTest.java b/common/src/test/java/org/onap/so/client/aai/AAIPatchConverterTest.java
index 0cee366679..0d4490f51d 100644
--- a/common/src/test/java/org/onap/so/client/aai/AAIPatchConverterTest.java
+++ b/common/src/test/java/org/onap/so/client/aai/AAIPatchConverterTest.java
@@ -68,6 +68,15 @@ public class AAIPatchConverterTest {
}
@Test
+ public void convertStringToPatchFormatNull_Test() throws URISyntaxException, JsonParseException, JsonMappingException, IOException {
+ AAIPatchConverter validator = new AAIPatchConverter();
+ String payload = "{\"ipv4-loopback0-address\": null}";
+ String result = validator.marshallObjectToPatchFormat(payload);
+ System.out.println(result);
+ assertEquals("expect no change", payload, result);
+ }
+
+ @Test
public void convertMapToPatchFormatTest() throws URISyntaxException, JsonParseException, JsonMappingException, IOException {
AAIPatchConverter validator = new AAIPatchConverter();
HashMap<String, String> map = new HashMap<>();