mirror of
https://github.com/BentoBoxWorld/Level.git
synced 2024-11-23 18:45:17 +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
|
||||
when(im.inTeam(Mockito.any(), Mockito.any())).thenReturn(true);
|
||||
// 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);
|
||||
PowerMockito.whenNew(PlayerLevel.class).withAnyArguments().thenReturn(pl);
|
||||
|
Loading…
Reference in New Issue
Block a user