diff options
author | Brendan Tschaen <ctschaen@att.com> | 2020-05-07 18:24:57 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-05-07 18:24:57 +0000 |
commit | 2ea42461173d8d387cc49b53566b661f7adc26a5 (patch) | |
tree | 254f1bc56ff186a93638f97a8e4758dfeedf0a40 | |
parent | 41b218706ae1adf323a513b99a65ffa713df11a3 (diff) | |
parent | 199eafc50e7ae7cc8f06e2ced56faacd212ed77a (diff) |
Merge "JUNITS for JSONDELETE class"
-rw-r--r-- | music-core/src/test/java/org/onap/music/datastore/jsonobjects/JsonDeleteTest.java | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/music-core/src/test/java/org/onap/music/datastore/jsonobjects/JsonDeleteTest.java b/music-core/src/test/java/org/onap/music/datastore/jsonobjects/JsonDeleteTest.java index 0014f823..5b9cef8b 100644 --- a/music-core/src/test/java/org/onap/music/datastore/jsonobjects/JsonDeleteTest.java +++ b/music-core/src/test/java/org/onap/music/datastore/jsonobjects/JsonDeleteTest.java @@ -82,4 +82,32 @@ public class JsonDeleteTest { } + @Test + public void testGetKeyspaceName() { + jd.setKeyspaceName("keyspace"); + assertEquals("keyspace",jd.getKeyspaceName()); + + } + + @Test + public void testGetTableName() { + jd.setTableName("tablename"); + assertEquals("tablename",jd.getTableName()); + + } + + @Test + public void testGetPrimarKeyValue() { + jd.setPrimarKeyValue("primarykey"); + assertEquals("primarykey",jd.getPrimarKeyValue()); + + } + + @Test + public void testRowIdString() { + StringBuilder builder = new StringBuilder("testing"); + jd.setRowIdString(builder); + assertEquals(jd.getRowIdString().toString(),builder.toString()); + } + } |