GH-2261: Fix ScatterGatherHandler.stop()
Fixes: spring-projects/spring-integration#2261 * Fix `ScatterGatherHandler.stop()` to call `GatherEndpoint.stop()` instead of `start()` Adding unit test as per artembilan's suggestion Replacing asterisk import with specific namespaces Fixing formatting/codestyle errors shown by travis Creating separate bean for new unit test * Some simple polishing * Merge the assertions for the fix into an existing test **Cherry-pick to 4.3.x**
This commit is contained in:
committed by
Artem Bilan
parent
00807d47e2
commit
f202b25775
@@ -43,6 +43,8 @@ import org.springframework.util.ClassUtils;
|
||||
* <a href="http://www.eaipatterns.com/BroadcastAggregate.html">Scatter-Gather</a> EIP pattern.
|
||||
*
|
||||
* @author Artem Bilan
|
||||
* @author Abdul Zaheer
|
||||
*
|
||||
* @since 4.1
|
||||
*/
|
||||
public class ScatterGatherHandler extends AbstractReplyProducingMessageHandler implements Lifecycle {
|
||||
@@ -161,7 +163,7 @@ public class ScatterGatherHandler extends AbstractReplyProducingMessageHandler i
|
||||
@Override
|
||||
public void stop() {
|
||||
if (this.gatherEndpoint != null) {
|
||||
this.gatherEndpoint.start();
|
||||
this.gatherEndpoint.stop();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user