mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-27 13:15:28 +01:00
Fix IslandTeamCoopCommand test.
This commit is contained in:
parent
f1f374c258
commit
e4a8d705f1
@ -223,7 +223,7 @@ public class IslandTeamCoopCommandTest {
|
||||
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 class IslandTeamCoopCommandTest {
|
||||
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"));
|
||||
|
Loading…
Reference in New Issue
Block a user