Moved admin and island commands into API package

This commit is contained in:
tastybento 2018-08-02 19:26:46 -07:00
parent 4a1dede795
commit 3c74ef0694
65 changed files with 129 additions and 111 deletions

View File

@ -1,4 +1,4 @@
package world.bentobox.bentobox.commands.admin;
package world.bentobox.bentobox.api.commands.admin;
import java.util.List;

View File

@ -1,4 +1,4 @@
package world.bentobox.bentobox.commands.admin;
package world.bentobox.bentobox.api.commands.admin;
import java.util.ArrayList;
import java.util.List;

View File

@ -1,4 +1,4 @@
package world.bentobox.bentobox.commands.admin;
package world.bentobox.bentobox.api.commands.admin;
import java.util.List;
import java.util.Optional;

View File

@ -1,4 +1,4 @@
package world.bentobox.bentobox.commands.admin;
package world.bentobox.bentobox.api.commands.admin;
import java.util.List;
import java.util.UUID;

View File

@ -1,4 +1,4 @@
package world.bentobox.bentobox.commands.admin;
package world.bentobox.bentobox.api.commands.admin;
import java.util.ArrayList;
import java.util.List;

View File

@ -1,4 +1,4 @@
package world.bentobox.bentobox.commands.admin;
package world.bentobox.bentobox.api.commands.admin;
import java.util.List;

View File

@ -1,4 +1,4 @@
package world.bentobox.bentobox.commands.admin;
package world.bentobox.bentobox.api.commands.admin;
import java.io.File;
import java.util.HashMap;

View File

@ -1,4 +1,4 @@
package world.bentobox.bentobox.commands.admin;
package world.bentobox.bentobox.api.commands.admin;
import java.util.List;
import java.util.Map;

View File

@ -1,4 +1,4 @@
package world.bentobox.bentobox.commands.admin;
package world.bentobox.bentobox.api.commands.admin;
import java.util.ArrayList;
import java.util.List;

View File

@ -1,4 +1,4 @@
package world.bentobox.bentobox.commands.admin;
package world.bentobox.bentobox.api.commands.admin;
import java.util.ArrayList;
import java.util.List;

View File

@ -1,4 +1,4 @@
package world.bentobox.bentobox.commands.admin;
package world.bentobox.bentobox.api.commands.admin;
import java.util.List;

View File

@ -1,4 +1,4 @@
package world.bentobox.bentobox.commands.admin.range;
package world.bentobox.bentobox.api.commands.admin.range;
import java.util.List;

View File

@ -1,4 +1,4 @@
package world.bentobox.bentobox.commands.admin.range;
package world.bentobox.bentobox.api.commands.admin.range;
import java.util.HashMap;
import java.util.List;

View File

@ -1,4 +1,4 @@
package world.bentobox.bentobox.commands.admin.range;
package world.bentobox.bentobox.api.commands.admin.range;
import java.util.List;
import java.util.UUID;

View File

@ -1,4 +1,4 @@
package world.bentobox.bentobox.commands.admin.range;
package world.bentobox.bentobox.api.commands.admin.range;
import java.util.List;
import java.util.UUID;

View File

@ -1,4 +1,4 @@
package world.bentobox.bentobox.commands.admin.team;
package world.bentobox.bentobox.api.commands.admin.team;
import java.util.List;
import java.util.UUID;

View File

@ -1,4 +1,4 @@
package world.bentobox.bentobox.commands.admin.team;
package world.bentobox.bentobox.api.commands.admin.team;
import java.util.List;
import java.util.UUID;

View File

@ -1,4 +1,4 @@
package world.bentobox.bentobox.commands.admin.team;
package world.bentobox.bentobox.api.commands.admin.team;
import java.util.List;
import java.util.UUID;

View File

@ -1,4 +1,4 @@
package world.bentobox.bentobox.commands.admin.team;
package world.bentobox.bentobox.api.commands.admin.team;
import java.util.List;
import java.util.UUID;

View File

@ -1,4 +1,4 @@
package world.bentobox.bentobox.commands.island;
package world.bentobox.bentobox.api.commands.island;
import java.util.List;

View File

@ -1,4 +1,4 @@
package world.bentobox.bentobox.commands.island;
package world.bentobox.bentobox.api.commands.island;
import java.util.List;

View File

@ -1,4 +1,4 @@
package world.bentobox.bentobox.commands.island;
package world.bentobox.bentobox.api.commands.island;
import java.util.List;
import java.util.Optional;

View File

@ -1,4 +1,4 @@
package world.bentobox.bentobox.commands.island;
package world.bentobox.bentobox.api.commands.island;
import java.util.ArrayList;
import java.util.List;

View File

@ -1,4 +1,4 @@
package world.bentobox.bentobox.commands.island;
package world.bentobox.bentobox.api.commands.island;
import java.io.IOException;
import java.util.List;

View File

@ -1,4 +1,4 @@
package world.bentobox.bentobox.commands.island;
package world.bentobox.bentobox.api.commands.island;
import java.util.List;

View File

@ -0,0 +1,4 @@
package world.bentobox.bentobox.api.commands.island;
public class IslandInfoCommand {
}

View File

@ -1,4 +1,4 @@
package world.bentobox.bentobox.commands.island;
package world.bentobox.bentobox.api.commands.island;
import java.util.List;

View File

@ -1,4 +1,4 @@
package world.bentobox.bentobox.commands.island;
package world.bentobox.bentobox.api.commands.island;
import java.io.IOException;
import java.util.HashMap;

View File

@ -1,4 +1,4 @@
package world.bentobox.bentobox.commands.island;
package world.bentobox.bentobox.api.commands.island;
import java.util.List;
import java.util.UUID;

View File

@ -1,4 +1,4 @@
package world.bentobox.bentobox.commands.island;
package world.bentobox.bentobox.api.commands.island;
import java.util.List;
import java.util.UUID;

View File

@ -1,4 +1,4 @@
package world.bentobox.bentobox.commands.island;
package world.bentobox.bentobox.api.commands.island;
import java.util.List;
import java.util.UUID;

View File

@ -1,4 +1,4 @@
package world.bentobox.bentobox.commands.island;
package world.bentobox.bentobox.api.commands.island;
import java.util.List;

View File

@ -0,0 +1,4 @@
package world.bentobox.bentobox.api.commands.island;
public class IslandSpawnCommand {
}

View File

@ -1,4 +1,4 @@
package world.bentobox.bentobox.commands.island;
package world.bentobox.bentobox.api.commands.island;
import java.util.List;
import java.util.Optional;

View File

@ -1,4 +1,4 @@
package world.bentobox.bentobox.commands.island.team;
package world.bentobox.bentobox.api.commands.island.team;
import java.util.List;
import java.util.Set;

View File

@ -1,4 +1,4 @@
package world.bentobox.bentobox.commands.island.team;
package world.bentobox.bentobox.api.commands.island.team;
import java.util.List;
import java.util.UUID;

View File

@ -1,4 +1,4 @@
package world.bentobox.bentobox.commands.island.team;
package world.bentobox.bentobox.api.commands.island.team;
import java.util.ArrayList;
import java.util.List;

View File

@ -1,4 +1,4 @@
package world.bentobox.bentobox.commands.island.team;
package world.bentobox.bentobox.api.commands.island.team;
import java.util.List;
import java.util.UUID;

View File

@ -1,4 +1,4 @@
package world.bentobox.bentobox.commands.island.team;
package world.bentobox.bentobox.api.commands.island.team;
import java.util.HashSet;
import java.util.List;

View File

@ -1,4 +1,4 @@
package world.bentobox.bentobox.commands.island.team;
package world.bentobox.bentobox.api.commands.island.team;
import java.util.List;
import java.util.UUID;

View File

@ -1,4 +1,4 @@
package world.bentobox.bentobox.commands.island.team;
package world.bentobox.bentobox.api.commands.island.team;
import java.util.List;

View File

@ -1,4 +1,4 @@
package world.bentobox.bentobox.commands.island.team;
package world.bentobox.bentobox.api.commands.island.team;
import java.util.ArrayList;
import java.util.List;

View File

@ -1,4 +0,0 @@
package world.bentobox.bentobox.commands.island;
public class IslandInfoCommand {
}

View File

@ -1,4 +0,0 @@
package world.bentobox.bentobox.commands.island;
public class IslandSpawnCommand {
}

View File

@ -1,4 +1,4 @@
package world.bentobox.bentobox.commands.admin;
package world.bentobox.bentobox.api.commands.admin;
import static org.junit.Assert.assertFalse;
import static org.mockito.Mockito.mock;
@ -23,6 +23,7 @@ import org.powermock.reflect.Whitebox;
import world.bentobox.bentobox.BentoBox;
import world.bentobox.bentobox.Settings;
import world.bentobox.bentobox.api.commands.CompositeCommand;
import world.bentobox.bentobox.api.commands.admin.AdminClearResetsAllCommand;
import world.bentobox.bentobox.api.user.User;
import world.bentobox.bentobox.managers.CommandsManager;
import world.bentobox.bentobox.managers.IslandWorldManager;
@ -107,7 +108,7 @@ public class AdminClearResetsAllCommandTest {
}
/**
* Test method for {@link world.bentobox.bentobox.commands.admin.AdminClearResetsAllCommand#execute(world.bentobox.bentobox.api.user.User, java.util.List)}.
* Test method for {@link world.bentobox.bentobox.api.commands.admin.AdminClearResetsAllCommand#execute(world.bentobox.bentobox.api.user.User, java.util.List)}.
*/
@Test
public void testExecuteCheckConfirm() {

View File

@ -1,7 +1,7 @@
/**
*
*/
package world.bentobox.bentobox.commands.admin;
package world.bentobox.bentobox.api.commands.admin;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
@ -116,7 +116,7 @@ public class AdminClearResetsCommandTest {
}
/**
* Test method for {@link world.bentobox.bentobox.commands.admin.AdminClearResetsCommand#execute(world.bentobox.bentobox.api.user.User, java.util.List)}.
* Test method for {@link world.bentobox.bentobox.api.commands.admin.AdminClearResetsCommand#execute(world.bentobox.bentobox.api.user.User, java.util.List)}.
*/
@Test
public void testExecuteNoTarget() {
@ -127,7 +127,7 @@ public class AdminClearResetsCommandTest {
}
/**
* Test method for {@link world.bentobox.bentobox.commands.admin.AdminClearResetsCommand#execute(world.bentobox.bentobox.api.user.User, java.util.List)}.
* Test method for {@link world.bentobox.bentobox.api.commands.admin.AdminClearResetsCommand#execute(world.bentobox.bentobox.api.user.User, java.util.List)}.
*/
@Test
public void testExecuteUnknownPlayer() {
@ -139,7 +139,7 @@ public class AdminClearResetsCommandTest {
}
/**
* Test method for {@link world.bentobox.bentobox.commands.admin.AdminClearResetsCommand#execute(world.bentobox.bentobox.api.user.User, java.util.List)}.
* Test method for {@link world.bentobox.bentobox.api.commands.admin.AdminClearResetsCommand#execute(world.bentobox.bentobox.api.user.User, java.util.List)}.
*/
@Test
public void testExecutePlayerNoIsland() {

View File

@ -1,4 +1,4 @@
package world.bentobox.bentobox.commands.admin;
package world.bentobox.bentobox.api.commands.admin;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
@ -29,6 +29,7 @@ import org.powermock.reflect.Whitebox;
import world.bentobox.bentobox.BentoBox;
import world.bentobox.bentobox.Settings;
import world.bentobox.bentobox.api.commands.CompositeCommand;
import world.bentobox.bentobox.api.commands.admin.AdminInfoCommand;
import world.bentobox.bentobox.api.user.User;
import world.bentobox.bentobox.database.objects.Island;
import world.bentobox.bentobox.managers.CommandsManager;
@ -135,7 +136,7 @@ public class AdminInfoCommandTest {
}
/**
* Test method for {@link world.bentobox.bentobox.commands.admin.AdminInfoCommand#execute(User, String, List)} .
* Test method for {@link world.bentobox.bentobox.api.commands.admin.AdminInfoCommand#execute(User, String, List)} .
*/
@Test
public void testExecuteUnknownPlayer() {
@ -147,7 +148,7 @@ public class AdminInfoCommandTest {
}
/**
* Test method for {@link world.bentobox.bentobox.commands.admin.AdminInfoCommand#execute(world.bentobox.bentobox.api.user.User, java.util.List)}.
* Test method for {@link world.bentobox.bentobox.api.commands.admin.AdminInfoCommand#execute(world.bentobox.bentobox.api.user.User, java.util.List)}.
*/
@Test
public void testExecutePlayerHasNoIsland() {
@ -161,7 +162,7 @@ public class AdminInfoCommandTest {
}
/**
* Test method for {@link world.bentobox.bentobox.commands.admin.AdminInfoCommand#execute(User, String, List)}.
* Test method for {@link world.bentobox.bentobox.api.commands.admin.AdminInfoCommand#execute(User, String, List)}.
*/
@Test
public void testExecuteSuccess() {
@ -176,7 +177,7 @@ public class AdminInfoCommandTest {
}
/**
* Test method for {@link world.bentobox.bentobox.commands.admin.AdminInfoCommand#execute(User, String, List)}.
* Test method for {@link world.bentobox.bentobox.api.commands.admin.AdminInfoCommand#execute(User, String, List)}.
*/
@Test
public void testExecuteUserNotOnIsland() {
@ -190,7 +191,7 @@ public class AdminInfoCommandTest {
}
/**
* Test method for {@link world.bentobox.bentobox.commands.admin.AdminInfoCommand#execute(User, String, List)}.
* Test method for {@link world.bentobox.bentobox.api.commands.admin.AdminInfoCommand#execute(User, String, List)}.
*/
@Test
public void testExecuteSuccessUserOnIsland() {

View File

@ -1,4 +1,4 @@
package world.bentobox.bentobox.commands.admin;
package world.bentobox.bentobox.api.commands.admin;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;

View File

@ -1,4 +1,4 @@
package world.bentobox.bentobox.commands.admin;
package world.bentobox.bentobox.api.commands.admin;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;

View File

@ -1,4 +1,4 @@
package world.bentobox.bentobox.commands.admin.range;
package world.bentobox.bentobox.api.commands.admin.range;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
@ -25,6 +25,7 @@ import org.powermock.reflect.Whitebox;
import world.bentobox.bentobox.BentoBox;
import world.bentobox.bentobox.Settings;
import world.bentobox.bentobox.api.commands.CompositeCommand;
import world.bentobox.bentobox.api.commands.admin.range.AdminRangeCommand;
import world.bentobox.bentobox.api.user.User;
import world.bentobox.bentobox.managers.CommandsManager;
import world.bentobox.bentobox.managers.IslandWorldManager;

View File

@ -1,7 +1,7 @@
/**
*
*/
package world.bentobox.bentobox.commands.admin.range;
package world.bentobox.bentobox.api.commands.admin.range;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
@ -27,6 +27,7 @@ import org.powermock.reflect.Whitebox;
import world.bentobox.bentobox.BentoBox;
import world.bentobox.bentobox.Settings;
import world.bentobox.bentobox.api.commands.CompositeCommand;
import world.bentobox.bentobox.api.commands.admin.range.AdminRangeDisplayCommand;
import world.bentobox.bentobox.api.user.User;
import world.bentobox.bentobox.managers.CommandsManager;
import world.bentobox.bentobox.managers.IslandWorldManager;
@ -126,7 +127,7 @@ public class AdminRangeDisplayCommandTest {
}
/**
* Test method for {@link world.bentobox.bentobox.commands.admin.range.AdminRangeDisplayCommand#execute(world.bentobox.bentobox.api.user.User, java.lang.String, java.util.List)}.
* Test method for {@link world.bentobox.bentobox.api.commands.admin.range.AdminRangeDisplayCommand#execute(world.bentobox.bentobox.api.user.User, java.lang.String, java.util.List)}.
*/
@Test
public void testExecutePlayerDisplayArgs() {
@ -142,7 +143,7 @@ public class AdminRangeDisplayCommandTest {
}
/**
* Test method for {@link world.bentobox.bentobox.commands.admin.range.AdminRangeDisplayCommand#execute(world.bentobox.bentobox.api.user.User, java.lang.String, java.util.List)}.
* Test method for {@link world.bentobox.bentobox.api.commands.admin.range.AdminRangeDisplayCommand#execute(world.bentobox.bentobox.api.user.User, java.lang.String, java.util.List)}.
*/
@Test
public void testExecutePlayeShowArgs() {
@ -159,7 +160,7 @@ public class AdminRangeDisplayCommandTest {
}
/**
* Test method for {@link world.bentobox.bentobox.commands.admin.range.AdminRangeDisplayCommand#execute(world.bentobox.bentobox.api.user.User, java.lang.String, java.util.List)}.
* Test method for {@link world.bentobox.bentobox.api.commands.admin.range.AdminRangeDisplayCommand#execute(world.bentobox.bentobox.api.user.User, java.lang.String, java.util.List)}.
*/
@Test
public void testExecutePlayeHideArgs() {

View File

@ -1,7 +1,7 @@
/**
*
*/
package world.bentobox.bentobox.commands.admin.range;
package world.bentobox.bentobox.api.commands.admin.range;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
@ -29,6 +29,7 @@ import org.powermock.reflect.Whitebox;
import world.bentobox.bentobox.BentoBox;
import world.bentobox.bentobox.Settings;
import world.bentobox.bentobox.api.commands.CompositeCommand;
import world.bentobox.bentobox.api.commands.admin.range.AdminRangeResetCommand;
import world.bentobox.bentobox.api.localization.TextVariables;
import world.bentobox.bentobox.api.user.User;
import world.bentobox.bentobox.database.objects.Island;
@ -136,7 +137,7 @@ public class AdminRangeResetCommandTest {
}
/**
* Test method for {@link world.bentobox.bentobox.commands.admin.range.AdminRangeResetCommand#execute(world.bentobox.bentobox.api.user.User, java.lang.String, java.util.List)}.
* Test method for {@link world.bentobox.bentobox.api.commands.admin.range.AdminRangeResetCommand#execute(world.bentobox.bentobox.api.user.User, java.lang.String, java.util.List)}.
*/
@Test
public void testExecuteConsoleNoArgs() {
@ -149,7 +150,7 @@ public class AdminRangeResetCommandTest {
}
/**
* Test method for {@link world.bentobox.bentobox.commands.admin.range.AdminRangeResetCommand#execute(world.bentobox.bentobox.api.user.User, java.lang.String, java.util.List)}.
* Test method for {@link world.bentobox.bentobox.api.commands.admin.range.AdminRangeResetCommand#execute(world.bentobox.bentobox.api.user.User, java.lang.String, java.util.List)}.
*/
@Test
public void testExecutePlayerNoArgs() {
@ -161,7 +162,7 @@ public class AdminRangeResetCommandTest {
/**
* Test method for {@link world.bentobox.bentobox.commands.admin.range.AdminRangeResetCommand#execute(world.bentobox.bentobox.api.user.User, java.lang.String, java.util.List)}.
* Test method for {@link world.bentobox.bentobox.api.commands.admin.range.AdminRangeResetCommand#execute(world.bentobox.bentobox.api.user.User, java.lang.String, java.util.List)}.
*/
@Test
public void testExecuteUnknownPlayer() {
@ -173,7 +174,7 @@ public class AdminRangeResetCommandTest {
}
/**
* Test method for {@link world.bentobox.bentobox.commands.admin.range.AdminRangeResetCommand#execute(world.bentobox.bentobox.api.user.User, java.lang.String, java.util.List)}.
* Test method for {@link world.bentobox.bentobox.api.commands.admin.range.AdminRangeResetCommand#execute(world.bentobox.bentobox.api.user.User, java.lang.String, java.util.List)}.
*/
@Test
public void testExecuteKnownPlayerNoIsland() {
@ -187,7 +188,7 @@ public class AdminRangeResetCommandTest {
}
/**
* Test method for {@link world.bentobox.bentobox.commands.admin.range.AdminRangeResetCommand#execute(world.bentobox.bentobox.api.user.User, java.lang.String, java.util.List)}.
* Test method for {@link world.bentobox.bentobox.api.commands.admin.range.AdminRangeResetCommand#execute(world.bentobox.bentobox.api.user.User, java.lang.String, java.util.List)}.
*/
@Test
public void testExecuteKnownPlayer() {

View File

@ -1,7 +1,7 @@
/**
*
*/
package world.bentobox.bentobox.commands.admin.range;
package world.bentobox.bentobox.api.commands.admin.range;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
@ -29,6 +29,7 @@ import org.powermock.reflect.Whitebox;
import world.bentobox.bentobox.BentoBox;
import world.bentobox.bentobox.Settings;
import world.bentobox.bentobox.api.commands.CompositeCommand;
import world.bentobox.bentobox.api.commands.admin.range.AdminRangeSetCommand;
import world.bentobox.bentobox.api.localization.TextVariables;
import world.bentobox.bentobox.api.user.User;
import world.bentobox.bentobox.database.objects.Island;
@ -138,7 +139,7 @@ public class AdminRangeSetCommandTest {
}
/**
* Test method for {@link world.bentobox.bentobox.commands.admin.range.AdminRangeSetCommand#execute(world.bentobox.bentobox.api.user.User, java.lang.String, java.util.List)}.
* Test method for {@link world.bentobox.bentobox.api.commands.admin.range.AdminRangeSetCommand#execute(world.bentobox.bentobox.api.user.User, java.lang.String, java.util.List)}.
*/
@Test
public void testExecuteConsoleNoArgs() {
@ -151,7 +152,7 @@ public class AdminRangeSetCommandTest {
}
/**
* Test method for {@link world.bentobox.bentobox.commands.admin.range.AdminRangeSetCommand#execute(world.bentobox.bentobox.api.user.User, java.lang.String, java.util.List)}.
* Test method for {@link world.bentobox.bentobox.api.commands.admin.range.AdminRangeSetCommand#execute(world.bentobox.bentobox.api.user.User, java.lang.String, java.util.List)}.
*/
@Test
public void testExecutePlayerNoArgs() {
@ -163,7 +164,7 @@ public class AdminRangeSetCommandTest {
/**
* Test method for {@link world.bentobox.bentobox.commands.admin.range.AdminRangeSetCommand#execute(world.bentobox.bentobox.api.user.User, java.lang.String, java.util.List)}.
* Test method for {@link world.bentobox.bentobox.api.commands.admin.range.AdminRangeSetCommand#execute(world.bentobox.bentobox.api.user.User, java.lang.String, java.util.List)}.
*/
@Test
public void testExecuteUnknownPlayer() {
@ -176,7 +177,7 @@ public class AdminRangeSetCommandTest {
}
/**
* Test method for {@link world.bentobox.bentobox.commands.admin.range.AdminRangeSetCommand#execute(world.bentobox.bentobox.api.user.User, java.lang.String, java.util.List)}.
* Test method for {@link world.bentobox.bentobox.api.commands.admin.range.AdminRangeSetCommand#execute(world.bentobox.bentobox.api.user.User, java.lang.String, java.util.List)}.
*/
@Test
public void testExecuteKnownPlayerNoIsland() {
@ -191,7 +192,7 @@ public class AdminRangeSetCommandTest {
}
/**
* Test method for {@link world.bentobox.bentobox.commands.admin.range.AdminRangeSetCommand#execute(world.bentobox.bentobox.api.user.User, java.lang.String, java.util.List)}.
* Test method for {@link world.bentobox.bentobox.api.commands.admin.range.AdminRangeSetCommand#execute(world.bentobox.bentobox.api.user.User, java.lang.String, java.util.List)}.
*/
@Test
public void testExecuteTooHigh() {
@ -205,7 +206,7 @@ public class AdminRangeSetCommandTest {
}
/**
* Test method for {@link world.bentobox.bentobox.commands.admin.range.AdminRangeSetCommand#execute(world.bentobox.bentobox.api.user.User, java.lang.String, java.util.List)}.
* Test method for {@link world.bentobox.bentobox.api.commands.admin.range.AdminRangeSetCommand#execute(world.bentobox.bentobox.api.user.User, java.lang.String, java.util.List)}.
*/
@Test
public void testExecuteNotANumber() {
@ -219,7 +220,7 @@ public class AdminRangeSetCommandTest {
}
/**
* Test method for {@link world.bentobox.bentobox.commands.admin.range.AdminRangeSetCommand#execute(world.bentobox.bentobox.api.user.User, java.lang.String, java.util.List)}.
* Test method for {@link world.bentobox.bentobox.api.commands.admin.range.AdminRangeSetCommand#execute(world.bentobox.bentobox.api.user.User, java.lang.String, java.util.List)}.
*/
@Test
public void testExecuteDoubleNumber() {
@ -233,7 +234,7 @@ public class AdminRangeSetCommandTest {
}
/**
* Test method for {@link world.bentobox.bentobox.commands.admin.range.AdminRangeSetCommand#execute(world.bentobox.bentobox.api.user.User, java.lang.String, java.util.List)}.
* Test method for {@link world.bentobox.bentobox.api.commands.admin.range.AdminRangeSetCommand#execute(world.bentobox.bentobox.api.user.User, java.lang.String, java.util.List)}.
*/
@Test
public void testExecuteZero() {
@ -247,7 +248,7 @@ public class AdminRangeSetCommandTest {
}
/**
* Test method for {@link world.bentobox.bentobox.commands.admin.range.AdminRangeSetCommand#execute(world.bentobox.bentobox.api.user.User, java.lang.String, java.util.List)}.
* Test method for {@link world.bentobox.bentobox.api.commands.admin.range.AdminRangeSetCommand#execute(world.bentobox.bentobox.api.user.User, java.lang.String, java.util.List)}.
*/
@Test
public void testExecuteNegNumber() {
@ -261,7 +262,7 @@ public class AdminRangeSetCommandTest {
}
/**
* Test method for {@link world.bentobox.bentobox.commands.admin.range.AdminRangeSetCommand#execute(world.bentobox.bentobox.api.user.User, java.lang.String, java.util.List)}.
* Test method for {@link world.bentobox.bentobox.api.commands.admin.range.AdminRangeSetCommand#execute(world.bentobox.bentobox.api.user.User, java.lang.String, java.util.List)}.
*/
@Test
public void testExecuteSame() {
@ -275,7 +276,7 @@ public class AdminRangeSetCommandTest {
}
/**
* Test method for {@link world.bentobox.bentobox.commands.admin.range.AdminRangeSetCommand#execute(world.bentobox.bentobox.api.user.User, java.lang.String, java.util.List)}.
* Test method for {@link world.bentobox.bentobox.api.commands.admin.range.AdminRangeSetCommand#execute(world.bentobox.bentobox.api.user.User, java.lang.String, java.util.List)}.
*/
@Test
public void testExecute() {

View File

@ -1,4 +1,4 @@
package world.bentobox.bentobox.commands.admin.team;
package world.bentobox.bentobox.api.commands.admin.team;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
@ -26,6 +26,7 @@ import org.powermock.reflect.Whitebox;
import world.bentobox.bentobox.BentoBox;
import world.bentobox.bentobox.Settings;
import world.bentobox.bentobox.api.commands.CompositeCommand;
import world.bentobox.bentobox.api.commands.admin.team.AdminTeamAddCommand;
import world.bentobox.bentobox.api.user.User;
import world.bentobox.bentobox.database.objects.Island;
import world.bentobox.bentobox.managers.CommandsManager;
@ -268,7 +269,7 @@ public class AdminTeamAddCommandTest {
}
/**
* Test method for {@link world.bentobox.bentobox.commands.admin.team.AdminTeamAddCommand#execute(User, String, List)}.
* Test method for {@link world.bentobox.bentobox.api.commands.admin.team.AdminTeamAddCommand#execute(User, String, List)}.
*/
@Test
public void testExecuteSuccess() {

View File

@ -1,4 +1,4 @@
package world.bentobox.bentobox.commands.admin.team;
package world.bentobox.bentobox.api.commands.admin.team;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
@ -28,6 +28,7 @@ import org.powermock.reflect.Whitebox;
import world.bentobox.bentobox.BentoBox;
import world.bentobox.bentobox.Settings;
import world.bentobox.bentobox.api.commands.CompositeCommand;
import world.bentobox.bentobox.api.commands.admin.team.AdminTeamDisbandCommand;
import world.bentobox.bentobox.api.user.User;
import world.bentobox.bentobox.database.objects.Island;
import world.bentobox.bentobox.managers.CommandsManager;
@ -173,7 +174,7 @@ public class AdminTeamDisbandCommandTest {
}
/**
* Test method for {@link world.bentobox.bentobox.commands.admin.team.AdminTeamDisbandCommand#execute(User, String, List)}.
* Test method for {@link world.bentobox.bentobox.api.commands.admin.team.AdminTeamDisbandCommand#execute(User, String, List)}.
*/
@Test
public void testExecuteSuccess() {

View File

@ -1,7 +1,7 @@
/**
*
*/
package world.bentobox.bentobox.commands.admin.team;
package world.bentobox.bentobox.api.commands.admin.team;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
@ -30,6 +30,7 @@ import org.powermock.reflect.Whitebox;
import world.bentobox.bentobox.BentoBox;
import world.bentobox.bentobox.Settings;
import world.bentobox.bentobox.api.commands.CompositeCommand;
import world.bentobox.bentobox.api.commands.admin.team.AdminTeamKickCommand;
import world.bentobox.bentobox.api.user.User;
import world.bentobox.bentobox.database.objects.Island;
import world.bentobox.bentobox.managers.CommandsManager;
@ -177,7 +178,7 @@ public class AdminTeamKickCommandTest {
}
/**
* Test method for {@link world.bentobox.bentobox.commands.admin.team.AdminTeamKickCommand#execute(User, String, List)}.
* Test method for {@link world.bentobox.bentobox.api.commands.admin.team.AdminTeamKickCommand#execute(User, String, List)}.
*/
@Test
public void testExecute() {

View File

@ -1,4 +1,4 @@
package world.bentobox.bentobox.commands.admin.team;
package world.bentobox.bentobox.api.commands.admin.team;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
@ -28,6 +28,7 @@ import org.powermock.reflect.Whitebox;
import world.bentobox.bentobox.BentoBox;
import world.bentobox.bentobox.Settings;
import world.bentobox.bentobox.api.commands.CompositeCommand;
import world.bentobox.bentobox.api.commands.admin.team.AdminTeamMakeLeaderCommand;
import world.bentobox.bentobox.api.user.User;
import world.bentobox.bentobox.database.objects.Island;
import world.bentobox.bentobox.managers.CommandsManager;
@ -173,7 +174,7 @@ public class AdminTeamMakeLeaderCommandTest {
}
/**
* Test method for {@link world.bentobox.bentobox.commands.admin.team.AdminTeamMakeLeaderCommand#execute(User, String, List)}.
* Test method for {@link world.bentobox.bentobox.api.commands.admin.team.AdminTeamMakeLeaderCommand#execute(User, String, List)}.
*/
@Test
public void testExecuteSuccess() {

View File

@ -1,7 +1,7 @@
/**
*
*/
package world.bentobox.bentobox.commands.island;
package world.bentobox.bentobox.api.commands.island;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
@ -37,6 +37,7 @@ import org.powermock.reflect.Whitebox;
import world.bentobox.bentobox.BentoBox;
import world.bentobox.bentobox.Settings;
import world.bentobox.bentobox.api.commands.CompositeCommand;
import world.bentobox.bentobox.api.commands.island.IslandBanCommand;
import world.bentobox.bentobox.api.localization.TextVariables;
import world.bentobox.bentobox.api.user.User;
import world.bentobox.bentobox.database.objects.Island;
@ -122,7 +123,7 @@ public class IslandBanCommandTest {
}
/**
* Test method for {@link world.bentobox.bentobox.commands.island.IslandBanCommand#execute(User, String, List)}.
* Test method for {@link world.bentobox.bentobox.api.commands.island.IslandBanCommand#execute(User, String, List)}.
*/
// Island ban command by itself

View File

@ -1,7 +1,7 @@
/**
*
*/
package world.bentobox.bentobox.commands.island;
package world.bentobox.bentobox.api.commands.island;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
@ -33,6 +33,7 @@ import org.powermock.reflect.Whitebox;
import world.bentobox.bentobox.BentoBox;
import world.bentobox.bentobox.Settings;
import world.bentobox.bentobox.api.commands.CompositeCommand;
import world.bentobox.bentobox.api.commands.island.IslandBanlistCommand;
import world.bentobox.bentobox.api.user.User;
import world.bentobox.bentobox.database.objects.Island;
import world.bentobox.bentobox.managers.CommandsManager;
@ -119,7 +120,7 @@ public class IslandBanlistCommandTest {
}
/**
* Test method for {@link world.bentobox.bentobox.commands.island.IslandBanlistCommand#execute(world.bentobox.bentobox.api.user.User, java.util.List)}.
* Test method for {@link world.bentobox.bentobox.api.commands.island.IslandBanlistCommand#execute(world.bentobox.bentobox.api.user.User, java.util.List)}.
*/
@Test
public void testWithArgs() {

View File

@ -1,7 +1,7 @@
/**
*
*/
package world.bentobox.bentobox.commands.island;
package world.bentobox.bentobox.api.commands.island;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
@ -29,6 +29,7 @@ import org.powermock.reflect.Whitebox;
import world.bentobox.bentobox.BentoBox;
import world.bentobox.bentobox.Settings;
import world.bentobox.bentobox.api.commands.CompositeCommand;
import world.bentobox.bentobox.api.commands.island.IslandGoCommand;
import world.bentobox.bentobox.api.localization.TextVariables;
import world.bentobox.bentobox.api.user.User;
import world.bentobox.bentobox.database.objects.Island;
@ -123,7 +124,7 @@ public class IslandGoCommandTest {
}
/**
* Test method for {@link world.bentobox.bentobox.commands.island.IslandGoCommand#execute(world.bentobox.bentobox.api.user.User, java.util.List)}.
* Test method for {@link world.bentobox.bentobox.api.commands.island.IslandGoCommand#execute(world.bentobox.bentobox.api.user.User, java.util.List)}.
*/
@Test
public void testExecuteNoArgsNoIsland() {
@ -135,7 +136,7 @@ public class IslandGoCommandTest {
}
/**
* Test method for {@link world.bentobox.bentobox.commands.island.IslandGoCommand#execute(world.bentobox.bentobox.api.user.User, java.util.List)}.
* Test method for {@link world.bentobox.bentobox.api.commands.island.IslandGoCommand#execute(world.bentobox.bentobox.api.user.User, java.util.List)}.
*/
@Test
public void testExecuteNoArgs() {
@ -145,7 +146,7 @@ public class IslandGoCommandTest {
}
/**
* Test method for {@link world.bentobox.bentobox.commands.island.IslandGoCommand#execute(world.bentobox.bentobox.api.user.User, java.util.List)}.
* Test method for {@link world.bentobox.bentobox.api.commands.island.IslandGoCommand#execute(world.bentobox.bentobox.api.user.User, java.util.List)}.
*/
@Test
public void testExecuteNoArgsMultipleHomes() {
@ -156,7 +157,7 @@ public class IslandGoCommandTest {
}
/**
* Test method for {@link world.bentobox.bentobox.commands.island.IslandGoCommand#execute(world.bentobox.bentobox.api.user.User, java.util.List)}.
* Test method for {@link world.bentobox.bentobox.api.commands.island.IslandGoCommand#execute(world.bentobox.bentobox.api.user.User, java.util.List)}.
*/
@Test
public void testExecuteArgs1MultipleHomes() {
@ -169,7 +170,7 @@ public class IslandGoCommandTest {
}
/**
* Test method for {@link world.bentobox.bentobox.commands.island.IslandGoCommand#execute(world.bentobox.bentobox.api.user.User, java.util.List)}.
* Test method for {@link world.bentobox.bentobox.api.commands.island.IslandGoCommand#execute(world.bentobox.bentobox.api.user.User, java.util.List)}.
*/
@Test
public void testExecuteArgs2MultipleHomes() {
@ -184,7 +185,7 @@ public class IslandGoCommandTest {
/**
* Test method for {@link world.bentobox.bentobox.commands.island.IslandGoCommand#execute(world.bentobox.bentobox.api.user.User, java.util.List)}.
* Test method for {@link world.bentobox.bentobox.api.commands.island.IslandGoCommand#execute(world.bentobox.bentobox.api.user.User, java.util.List)}.
*/
@Test
public void testExecuteArgsJunkMultipleHomes() {

View File

@ -1,7 +1,7 @@
/**
*
*/
package world.bentobox.bentobox.commands.island;
package world.bentobox.bentobox.api.commands.island;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
@ -30,6 +30,7 @@ import org.powermock.reflect.Whitebox;
import world.bentobox.bentobox.BentoBox;
import world.bentobox.bentobox.Settings;
import world.bentobox.bentobox.api.commands.CompositeCommand;
import world.bentobox.bentobox.api.commands.island.IslandResetCommand;
import world.bentobox.bentobox.api.user.User;
import world.bentobox.bentobox.database.objects.Island;
import world.bentobox.bentobox.managers.CommandsManager;
@ -122,7 +123,7 @@ public class IslandResetCommandTest {
}
/**
* Test method for {@link world.bentobox.bentobox.commands.island.IslandResetCommand#execute(world.bentobox.bentobox.api.user.User, java.util.List)}.
* Test method for {@link world.bentobox.bentobox.api.commands.island.IslandResetCommand#execute(world.bentobox.bentobox.api.user.User, java.util.List)}.
* @throws IOException
*/
@Test

View File

@ -1,7 +1,7 @@
/**
*
*/
package world.bentobox.bentobox.commands.island;
package world.bentobox.bentobox.api.commands.island;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
@ -33,6 +33,7 @@ import org.powermock.reflect.Whitebox;
import world.bentobox.bentobox.BentoBox;
import world.bentobox.bentobox.Settings;
import world.bentobox.bentobox.api.commands.CompositeCommand;
import world.bentobox.bentobox.api.commands.island.IslandUnbanCommand;
import world.bentobox.bentobox.api.localization.TextVariables;
import world.bentobox.bentobox.api.user.User;
import world.bentobox.bentobox.database.objects.Island;
@ -118,7 +119,7 @@ public class IslandUnbanCommandTest {
}
/**
* Test method for {@link world.bentobox.bentobox.commands.island.IslandUnbanCommand#execute(world.bentobox.bentobox.api.user.User, java.util.List)}.
* Test method for {@link world.bentobox.bentobox.api.commands.island.IslandUnbanCommand#execute(world.bentobox.bentobox.api.user.User, java.util.List)}.
*/
// Island ban command by itself

View File

@ -1,7 +1,7 @@
/**
*
*/
package world.bentobox.bentobox.commands.island.team;
package world.bentobox.bentobox.api.commands.island.team;
import static org.junit.Assert.assertFalse;
import static org.mockito.Mockito.mock;
@ -27,6 +27,7 @@ import org.powermock.reflect.Whitebox;
import world.bentobox.bentobox.BentoBox;
import world.bentobox.bentobox.Settings;
import world.bentobox.bentobox.api.commands.CompositeCommand;
import world.bentobox.bentobox.api.commands.island.team.IslandTeamInviteCommand;
import world.bentobox.bentobox.api.user.User;
import world.bentobox.bentobox.managers.CommandsManager;
import world.bentobox.bentobox.managers.IslandWorldManager;

View File

@ -1,7 +1,7 @@
/**
*
*/
package world.bentobox.bentobox.commands.island.team;
package world.bentobox.bentobox.api.commands.island.team;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
@ -32,6 +32,7 @@ import org.powermock.reflect.Whitebox;
import world.bentobox.bentobox.BentoBox;
import world.bentobox.bentobox.Settings;
import world.bentobox.bentobox.api.commands.CompositeCommand;
import world.bentobox.bentobox.api.commands.island.team.IslandTeamKickCommand;
import world.bentobox.bentobox.api.user.User;
import world.bentobox.bentobox.managers.CommandsManager;
import world.bentobox.bentobox.managers.IslandWorldManager;

View File

@ -1,7 +1,7 @@
/**
*
*/
package world.bentobox.bentobox.commands.island.team;
package world.bentobox.bentobox.api.commands.island.team;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
@ -29,6 +29,7 @@ import org.powermock.reflect.Whitebox;
import world.bentobox.bentobox.BentoBox;
import world.bentobox.bentobox.Settings;
import world.bentobox.bentobox.api.commands.CompositeCommand;
import world.bentobox.bentobox.api.commands.island.team.IslandTeamLeaveCommand;
import world.bentobox.bentobox.api.user.User;
import world.bentobox.bentobox.managers.CommandsManager;
import world.bentobox.bentobox.managers.IslandWorldManager;