summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/test/java/org/onap/music/unittests/JsonResponseTest.java22
-rw-r--r--src/test/java/org/onap/music/unittests/jsonobjects/JsonOnboardTest.java11
2 files changed, 32 insertions, 1 deletions
diff --git a/src/test/java/org/onap/music/unittests/JsonResponseTest.java b/src/test/java/org/onap/music/unittests/JsonResponseTest.java
index 20ac1562..6af8c0d9 100644
--- a/src/test/java/org/onap/music/unittests/JsonResponseTest.java
+++ b/src/test/java/org/onap/music/unittests/JsonResponseTest.java
@@ -113,6 +113,28 @@ public class JsonResponseTest {
}
@Test
+ public void testLockLease() {
+ result = new JsonResponse(ResultType.SUCCESS);
+ result.setLockLease("lockLease");
+ assertEquals("lockLease", result.getLockLease());
+ }
+
+ @Test
+ public void testMusicBuild() {
+ result = new JsonResponse(ResultType.SUCCESS);
+ result.setMusicBuild("Build");
+ assertEquals("Build", result.getMusicBuild());
+ }
+
+ @Test
+ public void testLockHolder() {
+ result = new JsonResponse(ResultType.SUCCESS);
+ List<String> lockHolders = new ArrayList<>();
+ result.setLockHolder(lockHolders);
+ assertEquals(lockHolders, result.getLockHolder());
+ }
+
+ @Test
public void testLockStatus() {
result = new JsonResponse(ResultType.SUCCESS);
LockStatus status = LockStatus.LOCKED;
diff --git a/src/test/java/org/onap/music/unittests/jsonobjects/JsonOnboardTest.java b/src/test/java/org/onap/music/unittests/jsonobjects/JsonOnboardTest.java
index 1e66ed58..f7a1576a 100644
--- a/src/test/java/org/onap/music/unittests/jsonobjects/JsonOnboardTest.java
+++ b/src/test/java/org/onap/music/unittests/jsonobjects/JsonOnboardTest.java
@@ -4,6 +4,8 @@
* ===================================================================
* Copyright (c) 2017 AT&T Intellectual Property
* ===================================================================
+ * Modifications Copyright (c) 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
@@ -19,7 +21,7 @@
* ============LICENSE_END=============================================
* ====================================================================
*/
-
+
package org.onap.music.unittests.jsonobjects;
import static org.junit.Assert.*;
@@ -75,5 +77,12 @@ public class JsonOnboardTest {
assertEquals(aaf,jo.getIsAAF());
}
+
+ @Test
+ public void testKeyspace() {
+ jo.setKeyspace_name("Keyspace");
+ assertEquals("Keyspace",jo.getKeyspace());
+
+ }
}