Added testParseSimilar testcase to LiteralCommandNode

This commit is contained in:
Nathan Adams
2014-09-25 10:32:15 +02:00
parent d678a5cb21
commit 085f5b3d98
2 changed files with 10 additions and 7 deletions
@@ -29,6 +29,11 @@ public class LiteralCommandNodeTest {
assertThat(node.parse("foo", contextBuilder), is(""));
}
@Test(expected = IllegalArgumentSyntaxException.class)
public void testParseSimilar() throws Exception {
node.parse("foobar", contextBuilder);
}
@Test(expected = IllegalArgumentSyntaxException.class)
public void testParseInvalid() throws Exception {
node.parse("bar", contextBuilder);