aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/java/org/onap/music/unittests
diff options
context:
space:
mode:
authorNelson, Thomas (tn1381) <tn1381@att.com>2019-06-25 19:48:27 -0400
committerNelson, Thomas (tn1381) <tn1381@att.com>2019-06-26 11:18:47 -0400
commit7a8411afab33104f8bea2048411bb9da5e7b0f68 (patch)
tree677a1cac68bc8f25ad5d14412ae7d92fec1c0282 /src/test/java/org/onap/music/unittests
parentfcca903302375403ff16216ce9b4b3cca2d1362c (diff)
Sonar fixes for MusicApplication
and util files. Fixed Testing issuse Update Gitignore to include vscode. Issue-ID: MUSIC-419 Signed-off-by: Nelson, Thomas (tn1381) <tn1381@att.com> Change-Id: I202613f905e2ef0cde338e7c98074faf68bc649a Signed-off-by: Nelson, Thomas (tn1381) <tn1381@att.com>
Diffstat (limited to 'src/test/java/org/onap/music/unittests')
-rw-r--r--src/test/java/org/onap/music/unittests/TestRestMusicQAPI.java2
-rw-r--r--src/test/java/org/onap/music/unittests/TestsUsingCassandra.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/test/java/org/onap/music/unittests/TestRestMusicQAPI.java b/src/test/java/org/onap/music/unittests/TestRestMusicQAPI.java
index a9e6e4b6..385a4698 100644
--- a/src/test/java/org/onap/music/unittests/TestRestMusicQAPI.java
+++ b/src/test/java/org/onap/music/unittests/TestRestMusicQAPI.java
@@ -132,7 +132,7 @@ public class TestRestMusicQAPI {
try {
ReflectionTestUtils.setField(MusicDataStoreHandle.class, "mDstoreHandle",
CassandraCQL.connectToEmbeddedCassandra());
- MusicCore.mLockHandle = new CassaLockStore(MusicDataStoreHandle.getDSHandle());
+ MusicCore.setmLockHandle(new CassaLockStore(MusicDataStoreHandle.getDSHandle()));
// System.out.println("before class keysp");
//resp=data.createKeySpace(majorV,minorV,patchV,aid,appName,userId,password,kspObject,keyspaceName);
diff --git a/src/test/java/org/onap/music/unittests/TestsUsingCassandra.java b/src/test/java/org/onap/music/unittests/TestsUsingCassandra.java
index e2c65447..cc7c5146 100644
--- a/src/test/java/org/onap/music/unittests/TestsUsingCassandra.java
+++ b/src/test/java/org/onap/music/unittests/TestsUsingCassandra.java
@@ -66,7 +66,7 @@ public class TestsUsingCassandra {
public static void beforeClass() throws Exception {
ReflectionTestUtils.setField(MusicDataStoreHandle.class, "mDstoreHandle",
CassandraCQL.connectToEmbeddedCassandra());
- MusicCore.mLockHandle = new CassaLockStore(MusicDataStoreHandle.getDSHandle());
+ MusicCore.setmLockHandle(new CassaLockStore(MusicDataStoreHandle.getDSHandle()));
createAdminTable();
}