diff options
author | Sandeep J <sandeejh@in.ibm.com> | 2019-06-17 13:28:21 +0530 |
---|---|---|
committer | Sandeep J <sandeejh@in.ibm.com> | 2019-06-17 13:28:55 +0530 |
commit | b3b4f755633b4be2f2eb6cff2f63edf4f9fe7c45 (patch) | |
tree | 9ad3c4d16283fc6dafafa2639e075b17a62dabc7 | |
parent | e49ff54ef8cd2162cdc01c9a9ed69a8e6d6a51e1 (diff) |
added test case to JsonInsertTest.java
to increase code coverage
Issue-ID: MUSIC-412
Change-Id: I83d1d2f5d70ff5b73119f5c4e0d27e512de0f261
Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
-rw-r--r-- | src/test/java/org/onap/music/unittests/jsonobjects/JsonInsertTest.java | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/test/java/org/onap/music/unittests/jsonobjects/JsonInsertTest.java b/src/test/java/org/onap/music/unittests/jsonobjects/JsonInsertTest.java index 535cdd84..4992af7b 100644 --- a/src/test/java/org/onap/music/unittests/jsonobjects/JsonInsertTest.java +++ b/src/test/java/org/onap/music/unittests/jsonobjects/JsonInsertTest.java @@ -4,6 +4,8 @@ * =================================================================== * Copyright (c) 2017 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 @@ -22,9 +24,9 @@ package org.onap.music.unittests.jsonobjects; -import static org.junit.Assert.*; +import static org.junit.Assert.assertArrayEquals; +import static org.junit.Assert.assertEquals; -import java.io.Serializable; import java.util.HashMap; import java.util.Map; @@ -98,6 +100,12 @@ public class JsonInsertTest { assertArrayEquals(ji1,test1); } - + @Test + public void testObjectMap() + { + Map<String, byte[]> map = new HashMap<>(); + ji.setObjectMap(map); + assertEquals(map, ji.getObjectMap()); + } } |