Skip to content

Commit

Permalink
Fix IslandTeamCoopCommand test.
Browse files Browse the repository at this point in the history
  • Loading branch information
tastybento committed Mar 6, 2021
1 parent f1f374c commit e4a8d70
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
}
Expand All @@ -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"));
Expand Down

0 comments on commit e4a8d70

Please sign in to comment.