Fixed broken tests in IslandsManager
This commit is contained in:
parent
9bb45ae426
commit
010a56bc7b
|
@ -1380,6 +1380,7 @@ public class IslandsManagerTest {
|
|||
when(island.getOwner()).thenReturn(uuid);
|
||||
when(island.getWorld()).thenReturn(world);
|
||||
when(island.getMaxMembers()).thenReturn(null);
|
||||
when(island.getMaxMembers(Mockito.anyInt())).thenReturn(null);
|
||||
when(iwm.getMaxTeamSize(eq(world))).thenReturn(4);
|
||||
// Offline owner
|
||||
when(Bukkit.getPlayer(any(UUID.class))).thenReturn(null);
|
||||
|
@ -1398,6 +1399,7 @@ public class IslandsManagerTest {
|
|||
when(island.getOwner()).thenReturn(uuid);
|
||||
when(island.getWorld()).thenReturn(world);
|
||||
when(island.getMaxMembers()).thenReturn(null);
|
||||
when(island.getMaxMembers(Mockito.anyInt())).thenReturn(null);
|
||||
when(iwm.getMaxTeamSize(eq(world))).thenReturn(4);
|
||||
// Online owner
|
||||
when(Bukkit.getPlayer(any(UUID.class))).thenReturn(player);
|
||||
|
@ -1416,6 +1418,7 @@ public class IslandsManagerTest {
|
|||
when(island.getOwner()).thenReturn(uuid);
|
||||
when(island.getWorld()).thenReturn(world);
|
||||
when(island.getMaxMembers()).thenReturn(null);
|
||||
when(island.getMaxMembers(Mockito.anyInt())).thenReturn(null);
|
||||
when(iwm.getMaxTeamSize(eq(world))).thenReturn(4);
|
||||
when(iwm.getMaxCoopSize(eq(world))).thenReturn(2);
|
||||
when(iwm.getMaxTrustSize(eq(world))).thenReturn(3);
|
||||
|
|
Loading…
Reference in New Issue