Clean up annotation parsing.

This commit is contained in:
Alexander Söderberg 2020-09-22 13:13:01 +02:00
parent e72a876037
commit 56623160e1
No known key found for this signature in database
GPG key ID: C0207FF7EA146678
10 changed files with 480 additions and 184 deletions

View file

@ -55,7 +55,7 @@ class AnnotationParserTest {
final Collection<Command<TestCommandSender>> commands = annotationParser.parse(this);
Assertions.assertFalse(commands.isEmpty());
manager.executeCommand(new TestCommandSender(), "test 10").join();
manager.executeCommand(new TestCommandSender(), "t 10").join();
manager.executeCommand(new TestCommandSender(), "t 10 o").join();
Assertions.assertThrows(CompletionException.class, () ->
manager.executeCommand(new TestCommandSender(), "test 101").join());
}