Spring Integration

org.springframework.integration.test.support
Class AbstractRequestResponseScenarioTests

java.lang.Object
  extended by org.springframework.integration.test.support.AbstractRequestResponseScenarioTests
Direct Known Subclasses:
SingleRequestResponseScenarioTests

public abstract class AbstractRequestResponseScenarioTests
extends java.lang.Object

Convenience class for testing Spring Integration request-response message scenarios. Users create subclasses to execute on or more RequestResponseScenario tests. each scenario defines:

Author:
David Turanski

Constructor Summary
AbstractRequestResponseScenarioTests()
           
 
Method Summary
protected abstract  java.util.List<RequestResponseScenario> defineRequestResponseScenarios()
          Implement this method to define RequestResponse scenarios
 void setUp()
           
 void testRequestResponseScenarios()
          Execute each scenario.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractRequestResponseScenarioTests

public AbstractRequestResponseScenarioTests()
Method Detail

setUp

public void setUp()

testRequestResponseScenarios

public void testRequestResponseScenarios()
Execute each scenario. Instantiate the message channels, send the request message on the input channel and invoke the validator on the response received on the output channel. This can handle subscribable or pollable output channels.


defineRequestResponseScenarios

protected abstract java.util.List<RequestResponseScenario> defineRequestResponseScenarios()
Implement this method to define RequestResponse scenarios

Returns:
- A List of RequestResponseScenario

Spring Integration