Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
0.1.0
-
None
Description
StandardProcessorTestRunner does not wait for the processor 'run' calls to finish before invoking the @OnUnscheduled methods. This may result in the Processor 'run' calls acting weird, because @OnUnscheduled has been called.
Notice that ExecutorService.shutdown() says This method does not wait for previously submitted tasks to complete execution. Use awaitTermination to do that.
I would suggest that the StandardProcessorTestRunner either always wait for the processor run calls to finish, or let you specify an amount of time to wait for them to finish.