use of org.mule.runtime.core.internal.processor.strategy.ReactorProcessingStrategyFactory.ReactorProcessingStrategy in project mule by mulesoft.
the class ReactorProcessingStrategyTestCase method cpuLightRejectedExecution.
@Test
@Description("If CPU LITE pool is busy OVERLOAD error is thrown")
public void cpuLightRejectedExecution() throws Exception {
flow = flowBuilder.get().processors(blockingProcessor).processingStrategyFactory((context, prefix) -> new ReactorProcessingStrategy(() -> new RejectingScheduler(cpuLight))).build();
flow.initialise();
flow.start();
expectRejected();
processFlow(testEvent());
}
Aggregations