final String mdx = wrapExpr(expr);
final QueryPart query;
if (old) {
query = p.parseInternal(null, mdx, false, funTable, false);
} else {
MdxParserValidator parser =
new JavaccParserValidatorImpl(p);
query =
parser.parseInternal(
null, mdx, false, funTable, false);
}
assertNull("Test parser should return null query", query);
final String actual = Util.unparse(p.formulas[0].getExpression());
TestContext.assertEqualsVerbose(expected, actual);