Search in sources :

Example 1 with StringAppendTransformer

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();
}
Also used : ResponseMessageProcessorAdapter(org.mule.runtime.core.internal.processor.ResponseMessageProcessorAdapter) SensingNullMessageProcessor(org.mule.tck.SensingNullMessageProcessor) ReactiveProcessor(org.mule.runtime.core.api.processor.ReactiveProcessor) LifecycleTrackerProcessor(org.mule.tck.core.lifecycle.LifecycleTrackerProcessor) Processor(org.mule.runtime.core.api.processor.Processor) ArrayList(java.util.ArrayList) StringAppendTransformer(org.mule.runtime.core.internal.transformer.simple.StringAppendTransformer)

Example 2 with StringAppendTransformer

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;
}
Also used : StringAppendTransformer(org.mule.runtime.core.internal.transformer.simple.StringAppendTransformer)

Aggregations

StringAppendTransformer (org.mule.runtime.core.internal.transformer.simple.StringAppendTransformer)2 ArrayList (java.util.ArrayList)1 Processor (org.mule.runtime.core.api.processor.Processor)1 ReactiveProcessor (org.mule.runtime.core.api.processor.ReactiveProcessor)1 ResponseMessageProcessorAdapter (org.mule.runtime.core.internal.processor.ResponseMessageProcessorAdapter)1 SensingNullMessageProcessor (org.mule.tck.SensingNullMessageProcessor)1 LifecycleTrackerProcessor (org.mule.tck.core.lifecycle.LifecycleTrackerProcessor)1