I've recently started playing around with Spring Integration and have run into a slight problem unit testing the message bus setup from and end-to-end perspective using JUnit 4.4 and Spring (2.5.2) Test Context Framework.
Due to the asynchronous nature of Spring Integration, the Test Framework prematurely stops/tears down the test prior to the message bus completing the work flow. I.e. the message bus work flow execution is longer running than the test case execution.
Is there any plan to provide/include MessageBusTestExecutionListener as a part of the Spring Integration Project that ensures the unit test spanning the end-to-end work flow of the message bus?


Reply With Quote