diff options
author | Sudarshan Kumar <sudars19@in.ibm.com> | 2019-01-22 18:26:00 +0530 |
---|---|---|
committer | Sudarshan Kumar <sudars19@in.ibm.com> | 2019-01-22 18:30:22 +0530 |
commit | 253e473ffd8c5287fcec759ff52395331203df0e (patch) | |
tree | f3bd5858e5fe9d0f68ddfb78b4d420a19dd720bb /src/test | |
parent | 8ab76666562642a25dfab6d9b326976402b9197b (diff) |
Additional Test Case Added
Additional test case added
Issue-ID: MUSIC-182
Change-Id: I9b7fdd069c2dba9734325991bfa490db8cd7b6bd
Signed-off-by: Sudarshan Kumar <sudars19@in.ibm.com>
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/java/org/onap/music/unittests/jsonobjects/JsonSelectTest.java | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/src/test/java/org/onap/music/unittests/jsonobjects/JsonSelectTest.java b/src/test/java/org/onap/music/unittests/jsonobjects/JsonSelectTest.java index 0243232f..f776e546 100644 --- a/src/test/java/org/onap/music/unittests/jsonobjects/JsonSelectTest.java +++ b/src/test/java/org/onap/music/unittests/jsonobjects/JsonSelectTest.java @@ -4,6 +4,8 @@ * =================================================================== * Copyright (c) 2017 AT&T Intellectual Property * =================================================================== + * Modifications Copyright (c) 2018-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 @@ -21,9 +23,12 @@ */ package org.onap.music.unittests.jsonobjects; -import static org.junit.Assert.*; +import static org.junit.Assert.assertEquals; + +import java.io.IOException; import java.util.HashMap; import java.util.Map; + import org.junit.Test; import org.onap.music.datastore.jsonobjects.JsonSelect; @@ -35,7 +40,16 @@ public class JsonSelectTest { Map<String, String> mapSs = new HashMap<>(); mapSs.put("k1", "one"); js.setConsistencyInfo(mapSs); - assertEquals("one",js.getConsistencyInfo().get("k1")); + assertEquals("one", js.getConsistencyInfo().get("k1")); + } + + @Test + public void testSerialize() throws IOException { + JsonSelect js = new JsonSelect(); + Map<String, String> mapSs = new HashMap<>(); + mapSs.put("Key", "Value"); + js.setConsistencyInfo(mapSs); + js.serialize(); } } |