aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Nelson <nelson24@att.com>2019-06-19 13:41:03 +0000
committerGerrit Code Review <gerrit@onap.org>2019-06-19 13:41:03 +0000
commitf8a74e83cabc5cedb0098e2e997e20a0a2d490e4 (patch)
tree58ae74ce3aa7fa0a1c1024b924b1d3a073982f2c
parent350d1312a383c3eff33297ff3dccb3e109baef68 (diff)
parent12428ef4576931e75b3f0eefc0c8ec29034f9873 (diff)
Merge "added test cases to JsonResponseTest.java"
-rw-r--r--src/test/java/org/onap/music/unittests/JsonResponseTest.java22
1 files changed, 22 insertions, 0 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;