aboutsummaryrefslogtreecommitdiffstats
path: root/music-core
diff options
context:
space:
mode:
authorezhil <ezhrajam@in.ibm.com>2020-04-15 19:32:13 +0530
committerEzhilarasi R <ezhrajam@in.ibm.com>2020-05-06 07:24:32 +0000
commit199eafc50e7ae7cc8f06e2ced56faacd212ed77a (patch)
tree5749d11bd6adee2638e2d8fef9b5f114982fe8a9 /music-core
parentced536da6f83f8ab0978411877c86acf12006382 (diff)
JUNITS for JSONDELETE class
Issue-ID: MUSIC-583 Change-Id: I10299d8883ce1a6acbf0bf84a965bd7efa525c52 Signed-off-by: ezhil <ezhrajam@in.ibm.com>
Diffstat (limited to 'music-core')
-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());
+ }
+
}