Fixes IslandTeamKickCommand test (commands.island.team.kick.cannot-kick)

This commit is contained in:
tastybento 2020-04-17 07:14:13 -07:00
parent 0f6852dac6
commit f5f2d7ac39

View File

@ -172,9 +172,9 @@ public class IslandTeamKickCommandTest {
when(im.getIsland(any(), any(UUID.class))).thenReturn(island);
when(im.getIsland(any(), any(User.class))).thenReturn(island);
when(island.getRankCommand(anyString())).thenReturn(RanksManager.VISITOR_RANK);
}
@After
public void tearDown() {
User.clearUsers();
@ -231,7 +231,7 @@ public class IslandTeamKickCommandTest {
IslandTeamKickCommand itl = new IslandTeamKickCommand(ic);
when(pm.getUUID(any())).thenReturn(uuid);
assertFalse(itl.execute(user, itl.getLabel(), Collections.singletonList("poslovitch")));
verify(user).sendMessage(eq("commands.island.kick.cannot-kick"));
verify(user).sendMessage(eq("commands.island.team.kick.cannot-kick"));
}
/**