added test case to JsonUpdateTest.java 58/76358/1
authorSandeep J <sandeejh@in.ibm.com>
Fri, 25 Jan 2019 16:50:09 +0000 (22:20 +0530)
committerSandeep J <sandeejh@in.ibm.com>
Fri, 25 Jan 2019 16:50:26 +0000 (22:20 +0530)
to increase code coverage

Issue-ID: MUSIC-182
Change-Id: I9661adfd052c027c411647cc767715f10eaac389
Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
src/test/java/org/onap/music/unittests/jsonobjects/JsonUpdateTest.java

index 54db054..2186e49 100644 (file)
@@ -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[]);
+    }
 
 }