MarketDataELCompiler implements OverrideOperationCompiler { @Override public OverrideOperation compile(final String operation, final ComputationTargetResolver.AtVersionCorrection resolver) { final UserExpression expr = getParser().parse(operation); return new Evaluator(expr, resolver); } MarketDataELCompiler(); @Override OverrideOperation compile(final String operation, final ComputationTargetResolver.AtVersionCorrection resolver);  }
@Test(expectedExceptions = {IllegalArgumentException.class }) public void testInvalidExpression() { final MarketDataELCompiler compiler = new MarketDataELCompiler(); compiler.compile("Not a valid expression", new DefaultComputationTargetResolver().atVersionCorrection(VersionCorrection.LATEST)); }