Commands can be parsed, in a very limited way.

This commit is contained in:
Nathan Adams
2014-09-18 11:48:03 +02:00
parent 2b267a26f6
commit a32243b704
11 changed files with 163 additions and 17 deletions
@@ -13,8 +13,8 @@ import static org.hamcrest.Matchers.is;
import static org.junit.Assert.assertThat;
public class RequiredArgumentBuilderTest {
@Mock CommandArgumentType type;
RequiredArgumentBuilder builder;
@Mock CommandArgumentType<Integer> type;
RequiredArgumentBuilder<Integer> builder;
@Before
public void setUp() throws Exception {
@@ -23,7 +23,7 @@ public class RequiredArgumentBuilderTest {
@Test
public void testBuild() throws Exception {
ArgumentCommandNode node = builder.build();
ArgumentCommandNode<Integer> node = builder.build();
assertThat(node.getName(), is("foo"));
assertThat(node.getType(), is(type));