diff options
author | Thomas Nelson <nelson24@att.com> | 2019-06-25 13:23:39 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-06-25 13:23:39 +0000 |
commit | 3ee3e105ceac27638095418771836c70f52ed2d6 (patch) | |
tree | e734e016c89a5123f2a64d3eddf02fb6982682de /src/test/java | |
parent | 32c90064cd24a03e1037639016e2e98a7ef8ae83 (diff) | |
parent | b3b4f755633b4be2f2eb6cff2f63edf4f9fe7c45 (diff) |
Merge "added test case to JsonInsertTest.java"
Diffstat (limited to 'src/test/java')
-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()); + } } |