diff options
author | Thomas Nelson Jr (arthurdent3) tn1381@att.com <tn1381@att.com> | 2018-06-07 15:43:03 -0400 |
---|---|---|
committer | Thomas Nelson Jr (arthurdent3) tn1381@att.com <tn1381@att.com> | 2018-06-07 15:59:49 -0400 |
commit | 05585a1df490fb548f43cff120410c253745cf9a (patch) | |
tree | 312823654c1336032726a896e646328fd0c45df5 /src/test/java/org/onap/music/unittests/TestMusicCore.java | |
parent | 03ade18ac83ab02ee1ce0d6d43725b96513b4577 (diff) |
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 <tn1381@att.com>
Diffstat (limited to 'src/test/java/org/onap/music/unittests/TestMusicCore.java')
-rw-r--r-- | src/test/java/org/onap/music/unittests/TestMusicCore.java | 6 |
1 files changed, 3 insertions, 3 deletions
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"); } |