Class CommandAPITestUtilities

java.lang.Object
dev.jorel.commandapi.CommandAPITestUtilities

public class CommandAPITestUtilities extends Object
Provides static methods to interact with CommandAPI commands registered in the test environment. This includes verifying that a command runs successfully, fails with a certain error message, runs with certain arguments, or suggests strings or tooltips.

Tip: The standard way to access static methods is by using the class name (e.g. CommandAPITestUtilities.assertCommandSucceeds(...)). However, you can also call these methods with just the method name (assertCommandSucceeds(...)), if you add a static import (import static dev.jorel.commandapi.CommandAPITestUtilities.assertCommandSucceeds;) or make your test class extend this class (class Tests extends CommandAPITestUtilities {...}).