From e4a8d705f190048983587a2cbf8537f11f0d4b46 Mon Sep 17 00:00:00 2001 From: tastybento Date: Sat, 6 Mar 2021 14:12:46 -0800 Subject: [PATCH] Fix IslandTeamCoopCommand test. --- .../api/commands/island/team/IslandTeamCoopCommandTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/world/bentobox/bentobox/api/commands/island/team/IslandTeamCoopCommandTest.java b/src/test/java/world/bentobox/bentobox/api/commands/island/team/IslandTeamCoopCommandTest.java index 0771cbf67..7f9e2541f 100644 --- a/src/test/java/world/bentobox/bentobox/api/commands/island/team/IslandTeamCoopCommandTest.java +++ b/src/test/java/world/bentobox/bentobox/api/commands/island/team/IslandTeamCoopCommandTest.java @@ -223,7 +223,7 @@ public void testCanExecutePlayerHasRank() { IslandTeamCoopCommand itl = new IslandTeamCoopCommand(ic); when(pm.getUUID(any())).thenReturn(notUUID); when(im.inTeam(any(), any())).thenReturn(true); - when(im.getMembers(any(), any())).thenReturn(Collections.singleton(notUUID)); + when(im.getMembers(any(), any(), anyInt())).thenReturn(Collections.singleton(notUUID)); assertFalse(itl.canExecute(user, itl.getLabel(), Collections.singletonList("bento"))); verify(user).sendMessage(eq("commands.island.team.coop.already-has-rank")); } @@ -246,7 +246,7 @@ public void testCanExecuteCannotCoopSelf() { public void testCanExecuteCannotAlreadyHasRank() { UUID other = UUID.randomUUID(); when(pm.getUUID(any())).thenReturn(other); - when(im.getMembers(any(), any())).thenReturn(Collections.singleton(other)); + when(im.getMembers(any(), any(), anyInt())).thenReturn(Collections.singleton(other)); IslandTeamCoopCommand itl = new IslandTeamCoopCommand(ic); assertFalse(itl.canExecute(user, itl.getLabel(), Collections.singletonList("tastybento"))); verify(user).sendMessage(eq("commands.island.team.coop.already-has-rank"));