Crossfire JXClient, Trunk
|
Public Member Functions | |
void | testExpandAllArguments () |
void | testExpandArguments () |
void | testExpandCaseInsensitiveCommandNames () |
void | testExpandIgnoreEmpty () |
void | testExpandIgnoreWhitespace () |
void | testExpandMultiple () |
void | testExpandPredefined () |
void | testExpandSingle () |
Static Private Member Functions | |
static void | check (@NotNull final CharSequence command, @NotNull final Commands commands, @NotNull final CommandExec... commandList) |
Regression test for CommandExpander.
Definition at line 184 of file CommandExpanderTest.java.
|
staticprivate |
Checks that CommandExpander#expand(CharSequence, Commands) works as expected.
command | the command to split |
commands | the commands instance to use |
commandList | the expected result |
Definition at line 312 of file CommandExpanderTest.java.
References com.realtime.crossfire.jxclient.commands.CommandExpander.expand().
Referenced by com.realtime.crossfire.jxclient.commands.CommandExpanderTest.testExpandAllArguments(), com.realtime.crossfire.jxclient.commands.CommandExpanderTest.testExpandArguments(), com.realtime.crossfire.jxclient.commands.CommandExpanderTest.testExpandCaseInsensitiveCommandNames(), com.realtime.crossfire.jxclient.commands.CommandExpanderTest.testExpandIgnoreEmpty(), com.realtime.crossfire.jxclient.commands.CommandExpanderTest.testExpandIgnoreWhitespace(), com.realtime.crossfire.jxclient.commands.CommandExpanderTest.testExpandMultiple(), com.realtime.crossfire.jxclient.commands.CommandExpanderTest.testExpandPredefined(), and com.realtime.crossfire.jxclient.commands.CommandExpanderTest.testExpandSingle().
void com.realtime.crossfire.jxclient.commands.CommandExpanderTest.testExpandAllArguments | ( | ) |
Checks that CommandExpander#expand(CharSequence, Commands) correctly parses commands that consume all remaining arguments.
Definition at line 288 of file CommandExpanderTest.java.
References com.realtime.crossfire.jxclient.commands.Commands.addCommand(), and com.realtime.crossfire.jxclient.commands.CommandExpanderTest.check().
void com.realtime.crossfire.jxclient.commands.CommandExpanderTest.testExpandArguments | ( | ) |
Checks that CommandExpander#expand(CharSequence, Commands) correctly parses command arguments.
Definition at line 253 of file CommandExpanderTest.java.
References com.realtime.crossfire.jxclient.commands.Commands.addCommand(), and com.realtime.crossfire.jxclient.commands.CommandExpanderTest.check().
void com.realtime.crossfire.jxclient.commands.CommandExpanderTest.testExpandCaseInsensitiveCommandNames | ( | ) |
Checks that CommandExpander#expand(CharSequence, Commands) matches command names case-insensitive. This is what the server does, too.
Definition at line 272 of file CommandExpanderTest.java.
References com.realtime.crossfire.jxclient.commands.Commands.addCommand(), and com.realtime.crossfire.jxclient.commands.CommandExpanderTest.check().
void com.realtime.crossfire.jxclient.commands.CommandExpanderTest.testExpandIgnoreEmpty | ( | ) |
Checks that CommandExpander#expand(CharSequence, Commands) ignores empty commands.
Definition at line 224 of file CommandExpanderTest.java.
References com.realtime.crossfire.jxclient.commands.CommandExpanderTest.check().
void com.realtime.crossfire.jxclient.commands.CommandExpanderTest.testExpandIgnoreWhitespace | ( | ) |
Checks that CommandExpander#expand(CharSequence, Commands) allows whitespace before or after the command separator.
Definition at line 211 of file CommandExpanderTest.java.
References com.realtime.crossfire.jxclient.commands.CommandExpanderTest.check().
void com.realtime.crossfire.jxclient.commands.CommandExpanderTest.testExpandMultiple | ( | ) |
Checks that CommandExpander#expand(CharSequence, Commands) works as expected.
Definition at line 201 of file CommandExpanderTest.java.
References com.realtime.crossfire.jxclient.commands.CommandExpanderTest.check().
void com.realtime.crossfire.jxclient.commands.CommandExpanderTest.testExpandPredefined | ( | ) |
Checks that CommandExpander#expand(CharSequence, Commands) detects predefined commands.
Definition at line 236 of file CommandExpanderTest.java.
References com.realtime.crossfire.jxclient.commands.Commands.addCommand(), and com.realtime.crossfire.jxclient.commands.CommandExpanderTest.check().
void com.realtime.crossfire.jxclient.commands.CommandExpanderTest.testExpandSingle | ( | ) |
Checks that CommandExpander#expand(CharSequence, Commands) works as expected.
Definition at line 191 of file CommandExpanderTest.java.
References com.realtime.crossfire.jxclient.commands.CommandExpanderTest.check().