mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-02-13 19:01:28 +01:00
Fixed broken build. Fixed failed tests.
This commit is contained in:
parent
4e7a31b0a3
commit
f9906fa2f5
@ -38,6 +38,7 @@ import com.google.common.collect.ImmutableSet;
|
||||
import world.bentobox.bentobox.BentoBox;
|
||||
import world.bentobox.bentobox.Settings;
|
||||
import world.bentobox.bentobox.api.commands.CompositeCommand;
|
||||
import world.bentobox.bentobox.api.localization.TextVariables;
|
||||
import world.bentobox.bentobox.api.user.User;
|
||||
import world.bentobox.bentobox.database.objects.Island;
|
||||
import world.bentobox.bentobox.managers.CommandsManager;
|
||||
@ -224,8 +225,8 @@ public class AdminUnregisterCommandTest {
|
||||
when(im.getIsland(any(), any(UUID.class))).thenReturn(oldIsland);
|
||||
AdminUnregisterCommand itl = new AdminUnregisterCommand(ac);
|
||||
UUID targetUUID = UUID.randomUUID();
|
||||
itl.unregisterPlayer(user, targetUUID);
|
||||
verify(user).sendMessage("commands.admin.unregister.unregistered-island", "[xyz]", "1,2,3");
|
||||
itl.unregisterPlayer(user, "name", targetUUID);
|
||||
verify(user).sendMessage("commands.admin.unregister.unregistered-island", "[xyz]", "1,2,3", TextVariables.NAME, "name");
|
||||
assertTrue(map.isEmpty());
|
||||
verify(im).removePlayer(any(), eq(uuid1));
|
||||
verify(im).removePlayer(any(), eq(uuid2));
|
||||
|
Loading…
Reference in New Issue
Block a user