use of org.mule.runtime.core.internal.processor.simple.SetPayloadMessageProcessor in project mule by mulesoft.
the class SetPayloadMessageProcessorTestCase method setUp.
@Before
public void setUp() throws Exception {
setPayloadMessageProcessor = new SetPayloadMessageProcessor();
muleContext = mock(MuleContext.class);
setPayloadMessageProcessor.setMuleContext(muleContext);
expressionManager = mock(ExtendedExpressionManager.class);
when(muleContext.getExpressionManager()).thenReturn(expressionManager);
when(muleContext.getConfiguration()).thenReturn(mock(MuleConfiguration.class));
when(expressionManager.parse(anyString(), any(CoreEvent.class), any(ComponentLocation.class))).thenAnswer(invocation -> (String) invocation.getArguments()[0]);
}
Aggregations