From 05585a1df490fb548f43cff120410c253745cf9a Mon Sep 17 00:00:00 2001 From: "Thomas Nelson Jr (arthurdent3) tn1381@att.com" Date: Thu, 7 Jun 2018 15:43:03 -0400 Subject: Document Updates and Bug Fixes Added latest Bug Fix Change-Id: I6e40e50a3e077c81f8098582b718bc60e39f8253 Issue-ID: MUSIC-76 Signed-off-by: Thomas Nelson Jr (arthurdent3) tn1381@att.com --- src/test/java/org/onap/music/unittests/TestMusicCore.java | 6 +++--- src/test/java/org/onap/music/unittests/TestRestMusicData.java | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/test/java/org') diff --git a/src/test/java/org/onap/music/unittests/TestMusicCore.java b/src/test/java/org/onap/music/unittests/TestMusicCore.java index e798aaf1..d1da3195 100644 --- a/src/test/java/org/onap/music/unittests/TestMusicCore.java +++ b/src/test/java/org/onap/music/unittests/TestMusicCore.java @@ -136,11 +136,11 @@ public class TestMusicCore { @Test public void testAcquireLockifisMyTurnTrueandIsTableOrKeySpaceLockFalseandDontHaveLock() throws MusicLockingException { MusicLockState musicLockState = new MusicLockState(LockStatus.LOCKED, "id2"); - Mockito.when(mLockHandle.isMyTurn("id1")).thenReturn(true); + Mockito.when(mLockHandle.isMyTurn("id2")).thenReturn(true); Mockito.when(mLockHandle.getLockState("ks1.tn1.pk1")).thenReturn(musicLockState); - ReturnType lock = MusicCore.acquireLock("ks1.tn1.pk1", "id1"); + ReturnType lock = MusicCore.acquireLock("ks1.tn1.pk1", "id2"); assertEquals(lock.getResult(), ResultType.SUCCESS); - Mockito.verify(mLockHandle).isMyTurn("id1"); + Mockito.verify(mLockHandle).isMyTurn("id2"); Mockito.verify(mLockHandle).getLockState("ks1.tn1.pk1"); } diff --git a/src/test/java/org/onap/music/unittests/TestRestMusicData.java b/src/test/java/org/onap/music/unittests/TestRestMusicData.java index b9fd058a..4234c88e 100644 --- a/src/test/java/org/onap/music/unittests/TestRestMusicData.java +++ b/src/test/java/org/onap/music/unittests/TestRestMusicData.java @@ -470,7 +470,7 @@ public class TestRestMusicData { JsonDelete jsonDelete = new JsonDelete(); Map consistencyInfo = new HashMap<>(); MultivaluedMap row = new MultivaluedMapImpl(); - consistencyInfo.put("type", "atomic"); + consistencyInfo.put("type", "eventual"); jsonDelete.setConsistencyInfo(consistencyInfo); Mockito.doNothing().when(http).addHeader(xLatestVersion, MusicUtil.getVersion()); Mockito.when(info.getQueryParameters()).thenReturn(row); -- cgit 1.2.3-korg