From 586d04056ea61d6c6428d5f23eaca24952f39454 Mon Sep 17 00:00:00 2001 From: Sandeep J Date: Fri, 25 Jan 2019 22:20:09 +0530 Subject: added test case to JsonUpdateTest.java to increase code coverage Issue-ID: MUSIC-182 Change-Id: I9661adfd052c027c411647cc767715f10eaac389 Signed-off-by: Sandeep J --- .../java/org/onap/music/unittests/jsonobjects/JsonUpdateTest.java | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/test') 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[]); + } } -- cgit 1.2.3-korg