diff options
author | ezhil <ezhrajam@in.ibm.com> | 2020-04-17 11:58:51 +0530 |
---|---|---|
committer | Ezhilarasi R <ezhrajam@in.ibm.com> | 2020-05-06 13:54:59 +0000 |
commit | 41b218706ae1adf323a513b99a65ffa713df11a3 (patch) | |
tree | f4669e4c9ae907d5460171595cce6430a740c8b3 | |
parent | 04eed9e6f68dbdc4a33fc80b3f8778d6a90865e4 (diff) |
JUNIT for Jsonselect class
Issue-ID: MUSIC-583
Change-Id: I39087ea2dbb66e789873d7bccae263041056a5d7
Signed-off-by: ezhil <ezhrajam@in.ibm.com>
-rw-r--r-- | music-core/src/test/java/org/onap/music/datastore/jsonobjects/JsonSelectTest.java | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/music-core/src/test/java/org/onap/music/datastore/jsonobjects/JsonSelectTest.java b/music-core/src/test/java/org/onap/music/datastore/jsonobjects/JsonSelectTest.java index 21c022ab..baada1d5 100644 --- a/music-core/src/test/java/org/onap/music/datastore/jsonobjects/JsonSelectTest.java +++ b/music-core/src/test/java/org/onap/music/datastore/jsonobjects/JsonSelectTest.java @@ -33,10 +33,10 @@ import java.util.Map; import org.junit.Test; public class JsonSelectTest { + JsonSelect js = new JsonSelect(); @Test public void testGetConsistencyInfo() { - JsonSelect js = new JsonSelect(); Map<String, String> mapSs = new HashMap<>(); mapSs.put("k1", "one"); js.setConsistencyInfo(mapSs); @@ -45,11 +45,24 @@ public class JsonSelectTest { @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(); } + @Test + public void testGetKeyspaceName() { + js.setKeyspaceName("testkeyspace"); + assertEquals("testkeyspace",js.getKeyspaceName()); + + } + + @Test + public void testGetTableName() { + js.setTableName("testkeyspace"); + assertEquals("testkeyspace",js.getTableName()); + + } + } |