Fix failing UnitTest.

Test was failing because getTeamLeader method was switched to getOwner.
This commit is contained in:
BONNe1704 2018-12-18 10:22:33 +02:00
parent 4f384989bb
commit bdb0331dc1
1 changed files with 1 additions and 1 deletions

View File

@ -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);