@Test void errors_when_there_are_only_operators() { Executable testMethod = () -> TagExpressionParser.parse("or or"); TagExpressionException thrownException = assertThrows(TagExpressionException.class, testMethod); assertThat("Unexpected message", thrownException.getMessage(), is(equalTo("Tag expression 'or or' could not be parsed because of syntax error: expected operand"))); }
public static Expression parse(String infix) { return new TagExpressionParser(infix).parse(); }
TagExpressionParser { public static Expression parse(String infix) { return new TagExpressionParser(infix).parse(); } }
TagExpressionParser { public static Expression parse(String infix) { return new TagExpressionParser(infix).parse(); } private  TagExpressionParser(String infix); }
TagExpressionParser { public static Expression parse(String infix) { return new TagExpressionParser(infix).parse(); } private  TagExpressionParser(String infix); static Expression parse(String infix); }
TagExpressionParser { public static Expression parse(String infix) { return new TagExpressionParser(infix).parse(); } private  TagExpressionParser(String infix); static Expression parse(String infix);  }