mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 09:47:38 +00:00
It just a test case but meh...
This commit is contained in:
parent
c1f1e29617
commit
a4618fa3c0
@ -28,7 +28,7 @@ import java.util.Arrays;
|
|||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
|
|
||||||
public class CommandContextTest {
|
public class CommandContextTest {
|
||||||
final String firstCmdString = "herpderp -opw testers \"mani world\" 'another thing' because something";
|
private static final String firstCmdString = "herpderp -opw testers \"mani world\" 'another thing' because something";
|
||||||
CommandContext firstCommand;
|
CommandContext firstCommand;
|
||||||
|
|
||||||
@Before
|
@Before
|
||||||
@ -43,7 +43,7 @@ public class CommandContextTest {
|
|||||||
|
|
||||||
@Test(expected = CommandException.class)
|
@Test(expected = CommandException.class)
|
||||||
public void testInvalidFlags() throws CommandException {
|
public void testInvalidFlags() throws CommandException {
|
||||||
String failingCommand = "herpderp -opw testers";
|
final String failingCommand = "herpderp -opw testers";
|
||||||
new CommandContext(failingCommand, new HashSet<Character>(Arrays.asList('o', 'w')));
|
new CommandContext(failingCommand, new HashSet<Character>(Arrays.asList('o', 'w')));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -81,7 +81,7 @@ public class CommandContextTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testHagingQuoted() {
|
public void testHangingQuote() {
|
||||||
String cmd = "r \"hello goodbye have fun";
|
String cmd = "r \"hello goodbye have fun";
|
||||||
try {
|
try {
|
||||||
CommandContext context = new CommandContext(cmd);
|
CommandContext context = new CommandContext(cmd);
|
||||||
|
Loading…
Reference in New Issue
Block a user