From: Sandeep J Date: Fri, 25 Jan 2019 16:50:09 +0000 (+0530) Subject: added test case to JsonUpdateTest.java X-Git-Tag: 2.5.8~48^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F58%2F76358%2F1;p=music.git added test case to JsonUpdateTest.java to increase code coverage Issue-ID: MUSIC-182 Change-Id: I9661adfd052c027c411647cc767715f10eaac389 Signed-off-by: Sandeep J --- 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[]); + } }