Search in sources :

Example 6 with ExtendedExpressionManager

use of org.mule.runtime.core.api.el.ExtendedExpressionManager in project mule by mulesoft.

the class LoggerMessageProcessorTestCase method buildExpressionManager.

private ExtendedExpressionManager buildExpressionManager() {
    ExtendedExpressionManager expressionLanguage = mock(ExtendedExpressionManager.class);
    when(expressionLanguage.parseLogTemplate(anyString(), any(CoreEvent.class), eq(((Component) flow).getLocation()), any(BindingContext.class))).thenReturn("text to log");
    return expressionLanguage;
}
Also used : CoreEvent(org.mule.runtime.core.api.event.CoreEvent) ExtendedExpressionManager(org.mule.runtime.core.api.el.ExtendedExpressionManager) Component(org.mule.runtime.api.component.Component) BindingContext(org.mule.runtime.api.el.BindingContext)

Aggregations

ExtendedExpressionManager (org.mule.runtime.core.api.el.ExtendedExpressionManager)6 BindingContext (org.mule.runtime.api.el.BindingContext)2 HashSet (java.util.HashSet)1 LinkedList (java.util.LinkedList)1 List (java.util.List)1 Set (java.util.Set)1 Stream (java.util.stream.Stream)1 Component (org.mule.runtime.api.component.Component)1 ExpressionModule (org.mule.runtime.api.el.ExpressionModule)1 ModuleNamespace (org.mule.runtime.api.el.ModuleNamespace)1 MuleException (org.mule.runtime.api.exception.MuleException)1 MuleRuntimeException (org.mule.runtime.api.exception.MuleRuntimeException)1 I18nMessageFactory.createStaticMessage (org.mule.runtime.api.i18n.I18nMessageFactory.createStaticMessage)1 Startable (org.mule.runtime.api.lifecycle.Startable)1 Stoppable (org.mule.runtime.api.lifecycle.Stoppable)1 ExtensionModel (org.mule.runtime.api.meta.model.ExtensionModel)1 FunctionModel (org.mule.runtime.api.meta.model.function.FunctionModel)1 DataType (org.mule.runtime.api.metadata.DataType)1 DataType.fromFunction (org.mule.runtime.api.metadata.DataType.fromFunction)1 TypedValue (org.mule.runtime.api.metadata.TypedValue)1