summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSandeep J <sandeejh@in.ibm.com>2019-01-25 22:20:09 +0530
committerSandeep J <sandeejh@in.ibm.com>2019-01-25 22:20:26 +0530
commit586d04056ea61d6c6428d5f23eaca24952f39454 (patch)
tree7a7ebe43e67cd66a94ee87b6286ea2f787f5e2c0
parent29056ff8d72d4f50073f6993ee6bd1b7ee7caf91 (diff)
added test case to JsonUpdateTest.java
to increase code coverage Issue-ID: MUSIC-182 Change-Id: I9661adfd052c027c411647cc767715f10eaac389 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
-rw-r--r--src/test/java/org/onap/music/unittests/jsonobjects/JsonUpdateTest.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/java/org/onap/music/unittests/jsonobjects/JsonUpdateTest.java b/src/test/java/org/onap/music/unittests/jsonobjects/JsonUpdateTest.java
index 54db0540..2186e496 100644
--- a/src/test/java/org/onap/music/unittests/jsonobjects/JsonUpdateTest.java
+++ b/src/test/java/org/onap/music/unittests/jsonobjects/JsonUpdateTest.java
@@ -4,6 +4,8 @@
* ===================================================================
* Copyright (c) 2018 AT&T Intellectual Property
* ===================================================================
+ * Modifications Copyright (c) 2019 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
@@ -99,5 +101,10 @@ public class JsonUpdateTest {
ju.setValues(cons);
assertEquals("one",ju.getValues().get("val1"));
}
+
+ @Test
+ public void testSerialize() {
+ assertTrue(ju.serialize() instanceof byte[]);
+ }
}