@Test public void shouldReturnNullFromParseCommentTestIfNotFollowedByOpenAndCloseParenthesis() { assertThat(parser.parseCommentTest(tokenize("comment x )")), is(nullValue())); assertThat(parser.parseCommentTest(tokenize("comment(x )")), is(nullValue())); assertThat(parser.parseCommentTest(tokenize("comment(x")), is(nullValue())); }
protected CommentTest parseCommentTest( TokenStream tokens ) { if (tokens.canConsume("comment", "(", ")")) { return new CommentTest(); } return null; }
XPathParser { protected CommentTest parseCommentTest( TokenStream tokens ) { if (tokens.canConsume("comment", "(", ")")) { return new CommentTest(); } return null; } }
XPathParser { protected CommentTest parseCommentTest( TokenStream tokens ) { if (tokens.canConsume("comment", "(", ")")) { return new CommentTest(); } return null; } XPathParser( TypeSystem context ); }
XPathParser { protected CommentTest parseCommentTest( TokenStream tokens ) { if (tokens.canConsume("comment", "(", ")")) { return new CommentTest(); } return null; } XPathParser( TypeSystem context ); Component parseXPath( String xpath ); }
XPathParser { protected CommentTest parseCommentTest( TokenStream tokens ) { if (tokens.canConsume("comment", "(", ")")) { return new CommentTest(); } return null; } XPathParser( TypeSystem context ); Component parseXPath( String xpath );  }