private void parseShouldFail(String expr) { try { LabelExpression.parseExpression(expr); fail(expr + " should fail to parse"); } catch (ANTLRException e) { // expected } }
private void parseAndVerify(String expected, String expr) throws ANTLRException { assertEquals(expected, LabelExpression.parseExpression(expr).getName()); }