From 8d0dbcdc3612f3a364d72be4cf62b33981484b3d Mon Sep 17 00:00:00 2001 From: tastybento Date: Sat, 21 Oct 2023 08:00:19 -0700 Subject: [PATCH] Fix erroneous code that got pasted in... --- .../team/IslandTeamSetownerCommandTest.java | 21 ------------------- 1 file changed, 21 deletions(-) diff --git a/src/test/java/world/bentobox/bentobox/api/commands/island/team/IslandTeamSetownerCommandTest.java b/src/test/java/world/bentobox/bentobox/api/commands/island/team/IslandTeamSetownerCommandTest.java index 324a50776..776abbd01 100644 --- a/src/test/java/world/bentobox/bentobox/api/commands/island/team/IslandTeamSetownerCommandTest.java +++ b/src/test/java/world/bentobox/bentobox/api/commands/island/team/IslandTeamSetownerCommandTest.java @@ -11,7 +11,6 @@ import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; -import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Optional; @@ -229,26 +228,6 @@ public void testCanExecuteUserStringListOfStringSamePlayer() { verify(user).sendMessage("commands.island.team.setowner.errors.cant-transfer-to-yourself"); } - /** - * test method for {@link world.bentobox.bentobox.api.commands.island.team.islandteamsetownercommand#canexecute(world.bentobox.bentobox.api.user.user, java.lang.string, java.util.list)}. - */ - @test - public void testcanexecuteuserstringlistofstringtargetatmaxislands() { - when(im.inteam(any(), any())).thenreturn(true); - when(im.getowner(any(), any())).thenreturn(uuid); - uuid target = uuid.randomuuid(); - when(pm.getuuid(anystring())).thenreturn(target); - when(im.getmembers(any(), any())).thenreturn(set.of(target)); - @nullable - island island = mock(island.class); - when(im.getisland(any(), any(user.class))).thenreturn(island); - - when(im.getnumberofconcurrentislands(target, world)).thenreturn(3); - - assertfalse(its.canexecute(user, "", list.of("tastybento"))); - verify(user).sendmessage("commands.island.team.setowner.errors.at-max"); - } - /** * Test method for {@link world.bentobox.bentobox.api.commands.island.team.IslandTeamSetownerCommand#canExecute(world.bentobox.bentobox.api.user.User, java.lang.String, java.util.List)}. */