use of org.mvel2.tests.core.res.res2.Outer in project mvel by mikebrock.
the class CoreConfidenceTests method testMVEL187.
public void testMVEL187() {
ParserContext context = new ParserContext();
context.addPackageImport("test");
context.addInput("outer", Outer.class);
Object compiled = MVEL.compileExpression("outer.getInner().getValue()", context);
Map<String, Object> vars = new HashMap<String, Object>();
vars.put("outer", new Outer());
VariableResolverFactory varsResolver = new MapVariableResolverFactory(vars);
assertEquals(2, executeExpression(compiled, varsResolver));
}
Aggregations