Exemplo n.º 1
0
 @Test(expected = MissingCommandException.class)
 public void testUnknownSubCommand() throws CommandException {
   testCommand.execute(
       this,
       "test1",
       new ChatArguments("hellothere").toSections(ChatSection.SplitType.WORD),
       -1,
       false);
 }
Exemplo n.º 2
0
 @Test(expected = MissingCommandException.class)
 public void testUnknownSubCommand() throws CommandException {
   testCommand.execute(this, new String[] {"test1", "hellothere"}, -1, false);
 }