Crossfire JXClient, Trunk
R20561
|
Regression test for CommandExpander. More...
Static Private Member Functions | |
static void | check (@NotNull final CharSequence command, @NotNull final Commands commands, @NotNull final CommandExec... commandList) |
Checks that CommandExpander#expand(CharSequence, Commands) works as expected. More... | |
Regression test for CommandExpander.
Definition at line 36 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 164 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 140 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 105 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 124 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 76 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 63 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 53 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 88 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 43 of file CommandExpanderTest.java.
References com.realtime.crossfire.jxclient.commands.CommandExpanderTest.check().