use of org.mule.runtime.core.internal.processor.strategy.BlockingProcessingStrategyFactory in project mule by mulesoft.
the class DefaultFlowTestCase method restartWithBlockingProcessingStrategy.
@Test
public void restartWithBlockingProcessingStrategy() throws Exception {
after();
flow = (DefaultFlow) Flow.builder(FLOW_NAME, muleContext).source(flow.getSource()).processors(flow.getProcessors()).processingStrategyFactory(new BlockingProcessingStrategyFactory()).build();
flow.initialise();
flow.start();
flow.stop();
flow.start();
CoreEvent response = triggerFunction.apply(directInboundMessageSource.getListener(), testEvent());
assertThat(response, not(nullValue()));
}
use of org.mule.runtime.core.internal.processor.strategy.BlockingProcessingStrategyFactory in project mule by mulesoft.
the class AsyncDelegateMessageProcessorTestCase method processWithBlockingProcessingStrategy.
@Test
public void processWithBlockingProcessingStrategy() throws Exception {
flow.dispose();
flow = builder("flow", muleContext).processingStrategyFactory(new BlockingProcessingStrategyFactory()).build();
flow.initialise();
flow.start();
process();
}
Aggregations