summaryrefslogtreecommitdiffstats
path: root/src/test/java
diff options
context:
space:
mode:
authorSandeep J <sandeejh@in.ibm.com>2019-06-17 13:19:05 +0530
committerSandeep J <sandeejh@in.ibm.com>2019-06-17 13:19:45 +0530
commit12428ef4576931e75b3f0eefc0c8ec29034f9873 (patch)
treedc8a995549b7cf1f6fa5106c8d3485b6799f7c7f /src/test/java
parente49ff54ef8cd2162cdc01c9a9ed69a8e6d6a51e1 (diff)
added test cases to JsonResponseTest.java
to increase code coverage Issue-ID: MUSIC-412 Change-Id: Ia4e9c7772326e0011d0e63968f4dec9ce07249a9 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
Diffstat (limited to 'src/test/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;