Added a 'source' for commands that may be passed around in the context

This commit is contained in:
Nathan Adams
2014-09-29 12:18:40 +02:00
parent 6a8d067cf9
commit 2114f086cb
10 changed files with 60 additions and 41 deletions
@@ -24,7 +24,7 @@ public class RootCommandNodeTest extends AbstractCommandNodeTest {
@Test
public void testParse() throws Exception {
assertThat(node.parse("foo bar baz", new CommandContextBuilder()), is("foo bar baz"));
assertThat(node.parse("foo bar baz", new CommandContextBuilder<Object>(new Object())), is("foo bar baz"));
}
@Test(expected = UnsupportedOperationException.class)