use of org.mule.runtime.core.internal.transformer.simple.StringAppendTransformer in project mule by mulesoft.
the class DefaultFlowTestCase method doSetUp.
@Override
protected void doSetUp() throws Exception {
super.doSetUp();
sensingMessageProcessor = getSensingNullMessageProcessor();
List<Processor> processors = new ArrayList<>();
processors.add(new ResponseMessageProcessorAdapter(new StringAppendTransformer("f")));
processors.add(new ResponseMessageProcessorAdapter(new StringAppendTransformer("e")));
processors.add(new ResponseMessageProcessorAdapter(new StringAppendTransformer("d")));
processors.add(new StringAppendTransformer("a"));
processors.add(new StringAppendTransformer("b"));
processors.add(new StringAppendTransformer("c"));
processors.add(event -> CoreEvent.builder(event).addVariable("thread", currentThread()).build());
processors.add(sensingMessageProcessor);
flow = (DefaultFlow) Flow.builder(FLOW_NAME, muleContext).source(directInboundMessageSource).processors(processors).build();
stoppedFlow = (DefaultFlow) Flow.builder(FLOW_NAME, muleContext).source(directInboundMessageSource).processors(processors).initialState(INITIAL_STATE_STOPPED).build();
}
use of org.mule.runtime.core.internal.transformer.simple.StringAppendTransformer in project mule by mulesoft.
the class ResponseMessageProcessorAdapterTestCase method createStringAppendTransformer.
private StringAppendTransformer createStringAppendTransformer(String append) {
StringAppendTransformer transformer = new StringAppendTransformer(append);
transformer.setMuleContext(muleContext);
return transformer;
}
Aggregations