use of org.mule.mvel2.integration.impl.SimpleValueResolver in project mule by mulesoft.
the class MVELExpressionLanguageContextTestCase method testGetVariableResolver.
@Test
public void testGetVariableResolver() {
MuleBaseVariableResolverFactory resoverFactory = new MVELExpressionLanguageContext(parserConfig, muleContext);
resoverFactory.addResolver("foo", new SimpleValueResolver("val"));
assertNotNull(resoverFactory.getVariableResolver("foo"));
assertEquals("val", resoverFactory.getVariableResolver("foo").getValue());
assertNull(resoverFactory.getVariableResolver("bar"));
}
Aggregations