aboutsummaryrefslogtreecommitdiffstats
path: root/music-core/src
diff options
context:
space:
mode:
authorBrendan Tschaen <ctschaen@att.com>2020-05-07 18:24:57 +0000
committerGerrit Code Review <gerrit@onap.org>2020-05-07 18:24:57 +0000
commit2ea42461173d8d387cc49b53566b661f7adc26a5 (patch)
tree254f1bc56ff186a93638f97a8e4758dfeedf0a40 /music-core/src
parent41b218706ae1adf323a513b99a65ffa713df11a3 (diff)
parent199eafc50e7ae7cc8f06e2ced56faacd212ed77a (diff)
Merge "JUNITS for JSONDELETE class"
Diffstat (limited to 'music-core/src')
-rw-r--r--music-core/src/test/java/org/onap/music/datastore/jsonobjects/JsonDeleteTest.java28
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());
+ }
+
}