Class RequestResponseScenario
java.lang.Object
org.springframework.integration.test.support.RequestResponseScenario
Defines a Spring Integration request response test scenario. All setter methods may
 be chained.
- Author:
- David Turanski
- 
Constructor SummaryConstructorsConstructorDescriptionRequestResponseScenario(String inputChannelName, String outputChannelName) Create an instance
- 
Method SummaryModifier and TypeMethodDescriptiongetName()protected voidinit()setMessage(Message<?> message) Set the request message (as an alternative to setPayload())Set the scenario name (optional)setPayload(Object payload) set the payload of the request messagesetResponseValidator(AbstractResponseValidator<?> responseValidator) Set the response validator
- 
Constructor Details- 
RequestResponseScenarioCreate an instance- Parameters:
- inputChannelName- the input channel name
- outputChannelName- the output channel name
 
 
- 
- 
Method Details- 
getMessage
- 
getInputChannelName- Returns:
- the input channel name
 
- 
getOutputChannelName- Returns:
- the output channel name
 
- 
getPayload- Returns:
- the request message payload
 
- 
setPayloadset the payload of the request message- Parameters:
- payload- The payload.
- Returns:
- this
 
- 
getName- Returns:
- the scenario name
 
- 
setNameSet the scenario name (optional)- Parameters:
- name- the name
- Returns:
- this
 
- 
getResponseValidator- Returns:
- the response validator
- See Also:
 
- 
setResponseValidatorSet the response validator- Parameters:
- responseValidator- The response validator.
- Returns:
- this
- See Also:
 
- 
setMessageSet the request message (as an alternative to setPayload())- Parameters:
- message- The message.
- Returns:
- this
 
- 
initprotected void init()
 
-