use of org.mule.runtime.core.internal.el.mvel.MVELExpressionExecutor in project mule by mulesoft.
the class DateTimeExpressionLanguageFunctionTestCase method setup.
@Before
public void setup() throws InitialisationException {
ParserConfiguration parserConfiguration = new ParserConfiguration();
expressionExecutor = new MVELExpressionExecutor(parserConfiguration);
context = new MVELExpressionLanguageContext(parserConfiguration, Mockito.mock(MuleContext.class));
dateTimeFunction = new DateTimeExpressionLanguageFuntion();
context.declareFunction("dateTime", dateTimeFunction);
}
use of org.mule.runtime.core.internal.el.mvel.MVELExpressionExecutor in project mule by mulesoft.
the class RegexExpressionLanguageFunctionTestCase method setup.
@Before
public void setup() throws InitialisationException {
ParserConfiguration parserConfiguration = new ParserConfiguration();
expressionExecutor = new MVELExpressionExecutor(parserConfiguration);
muleContext = mock(MuleContext.class);
context = new MVELExpressionLanguageContext(parserConfiguration, muleContext);
regexFuntion = new RegexExpressionLanguageFuntion();
context.declareFunction("regex", regexFuntion);
}
use of org.mule.runtime.core.internal.el.mvel.MVELExpressionExecutor in project mule by mulesoft.
the class WildcardExpressionLanguageFunctionTestCase method setup.
@Before
public void setup() throws InitialisationException {
ParserConfiguration parserConfiguration = new ParserConfiguration();
expressionExecutor = new MVELExpressionExecutor(parserConfiguration);
muleContext = mock(MuleContext.class);
context = new MVELExpressionLanguageContext(parserConfiguration, muleContext);
wildcardFunction = new WildcardExpressionLanguageFuntion();
context.declareFunction("wildcard", wildcardFunction);
}
Aggregations