mirror of
https://github.com/BentoBoxWorld/Level.git
synced 2024-11-30 14:03:27 +01:00
Fix failing UnitTest.
Test was failing because getTeamLeader method was switched to getOwner.
This commit is contained in:
parent
4f384989bb
commit
bdb0331dc1
@ -47,7 +47,7 @@ public class LevelPresenterTest {
|
|||||||
// In team
|
// In team
|
||||||
when(im.inTeam(Mockito.any(), Mockito.any())).thenReturn(true);
|
when(im.inTeam(Mockito.any(), Mockito.any())).thenReturn(true);
|
||||||
// team leader
|
// team leader
|
||||||
when(im.getTeamLeader(Mockito.any(), Mockito.any())).thenReturn(UUID.randomUUID());
|
when(im.getOwner(Mockito.any(), Mockito.any())).thenReturn(UUID.randomUUID());
|
||||||
|
|
||||||
pl = mock(PlayerLevel.class);
|
pl = mock(PlayerLevel.class);
|
||||||
PowerMockito.whenNew(PlayerLevel.class).withAnyArguments().thenReturn(pl);
|
PowerMockito.whenNew(PlayerLevel.class).withAnyArguments().thenReturn(pl);
|
||||||
|
Loading…
Reference in New Issue
Block a user