Start command refactor

This commit is contained in:
William278 committed 2023-03-05 19:10:19 +00:00
1 parent 39e0b25d46
commit 3e27f7c5b1
57 files changed
+728 -384

No files matched your search

@@ -4,7 +4,7 @@ import be.seeseemelk.mockbukkit.MockBukkit;
import be.seeseemelk.mockbukkit.ServerMock;
import be.seeseemelk.mockbukkit.entity.PlayerMock;
import de.themoep.minedown.adventure.MineDown;
import net.william278.huskhomes.command.BukkitCommandType;
import net.william278.huskhomes.command.BukkitCommand;
import net.william278.huskhomes.user.BukkitUser;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.Assertions;
@@ -41,8 +41,8 @@ public class BukkitPluginTests {
@Test
public void testCommandRegistration() {
// Assert that all commands in BukkitCommandType are registered by the plugin
for (BukkitCommandType command : BukkitCommandType.values()) {
Assertions.assertNotNull(plugin.getCommand(command.commandBase.command));
for (BukkitCommand.Type command : BukkitCommand.Type.values()) {
Assertions.assertNotNull(plugin.getCommand(command.getCommand().command));
}
}