diff options
author | Arthur Martella <arthur.martella.1@att.com> | 2019-09-13 15:59:26 -0400 |
---|---|---|
committer | Arthur Martella <arthur.martella.1@att.com> | 2019-09-16 14:24:40 -0400 |
commit | ea39a71e28f2772da7d467a410d43a7ddd8d163d (patch) | |
tree | 22c89e9b7abc41c7a69623b79a47eccf815e4947 /src/test/java/org | |
parent | 4fe3f08aa1c93a1fc81a78544031ef747a747098 (diff) |
Deadlock detection by owner
Issue-ID: MUSIC-502
Signed-off-by: Martella, Arthur <arthur.martella.1@att.com>
Change-Id: Iec20cfeec96d7031c691055ffba2f65c34854adf
Diffstat (limited to 'src/test/java/org')
-rw-r--r-- | src/test/java/org/onap/music/unittests/TstRestMusicLockAPI.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/test/java/org/onap/music/unittests/TstRestMusicLockAPI.java b/src/test/java/org/onap/music/unittests/TstRestMusicLockAPI.java index ec7659a6..98afe858 100644 --- a/src/test/java/org/onap/music/unittests/TstRestMusicLockAPI.java +++ b/src/test/java/org/onap/music/unittests/TstRestMusicLockAPI.java @@ -115,7 +115,7 @@ public class TstRestMusicLockAPI { System.out.println("Testing create lockref"); createAndInsertIntoTable(); Response response = lock.createLockReference(lockName, "1", "1", authorization, - "abc66ccc-d857-4e90-b1e5-df98a3d40ce6", null, appName); + "abc66ccc-d857-4e90-b1e5-df98a3d40ce6", null, null, appName); Map<String, Object> respMap = (Map<String, Object>) response.getEntity(); System.out.println("Status: " + response.getStatus() + ". Entity " + response.getEntity()); @@ -129,7 +129,7 @@ public class TstRestMusicLockAPI { System.out.println("Testing create bad lockref"); createAndInsertIntoTable(); Response response = lock.createLockReference("badlock", "1", "1", authorization, - "abc66ccc-d857-4e90-b1e5-df98a3d40ce6", null, appName); + "abc66ccc-d857-4e90-b1e5-df98a3d40ce6", null, null, appName); Map<String, Object> respMap = (Map<String, Object>) response.getEntity(); System.out.println("Status: " + response.getStatus() + ". Entity " + response.getEntity()); @@ -142,7 +142,7 @@ public class TstRestMusicLockAPI { createAndInsertIntoTable(); JsonLock jsonLock = createJsonLock(LockType.READ); Response response = lock.createLockReference(lockName, "1", "1", authorization, - "abc66ccc-d857-4e90-b1e5-df98a3d40ce6", jsonLock, appName); + "abc66ccc-d857-4e90-b1e5-df98a3d40ce6", jsonLock, null, appName); Map<String, Object> respMap = (Map<String, Object>) response.getEntity(); System.out.println("Status: " + response.getStatus() + ". Entity " + response.getEntity()); @@ -157,7 +157,7 @@ public class TstRestMusicLockAPI { createAndInsertIntoTable(); JsonLock jsonLock = createJsonLock(LockType.WRITE); Response response = lock.createLockReference(lockName, "1", "1", authorization, - "abc66ccc-d857-4e90-b1e5-df98a3d40ce6", jsonLock, appName); + "abc66ccc-d857-4e90-b1e5-df98a3d40ce6", jsonLock, null, appName); Map<String, Object> respMap = (Map<String, Object>) response.getEntity(); System.out.println("Status: " + response.getStatus() + ". Entity " + response.getEntity()); @@ -463,7 +463,7 @@ public class TstRestMusicLockAPI { @SuppressWarnings("unchecked") private String createLockReference() throws Exception { Response response = lock.createLockReference(lockName, "1", "1", authorization, - "abc66ccc-d857-4e90-b1e5-df98a3d40ce6", null, appName); + "abc66ccc-d857-4e90-b1e5-df98a3d40ce6", null, null, appName); Map<String, Object> respMap = (Map<String, Object>) response.getEntity(); return ((Map<String, String>) respMap.get("lock")).get("lock"); } @@ -478,7 +478,7 @@ public class TstRestMusicLockAPI { private String createLockReference(LockType lockType) throws Exception { JsonLock jsonLock = createJsonLock(lockType); Response response = lock.createLockReference(lockName, "1", "1", authorization, - "abc66ccc-d857-4e90-b1e5-df98a3d40ce6", jsonLock, appName); + "abc66ccc-d857-4e90-b1e5-df98a3d40ce6", jsonLock, null, appName); Map<String, Object> respMap = (Map<String, Object>) response.getEntity(); return ((Map<String, String>) respMap.get("lock")).get("lock"); } |