Class AbstractRequestResponseScenarioTests
java.lang.Object
org.springframework.integration.test.support.AbstractRequestResponseScenarioTests
- Direct Known Subclasses:
SingleRequestResponseScenarioTests
@DirtiesContext
@Deprecated(since="7.0",
forRemoval=true)
public abstract class AbstractRequestResponseScenarioTests
extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
Convenience class for testing Spring Integration request-response message scenarios.
Users create subclasses to execute on or more
RequestResponseScenario
tests.
each scenario defines:
- An inputChannelName
- An outputChannelName
- A payload or message to send as a request message on the inputChannel
- A handler to validate the response received on the outputChannel
- Author:
- David Turanski, Gary Russell, Artem Bilan, Jiandong Ma
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract List<RequestResponseScenario>
Deprecated, for removal: This API element is subject to removal in a future version.Implement this method to define RequestResponse scenariosvoid
setUp()
Deprecated, for removal: This API element is subject to removal in a future version.void
Deprecated, for removal: This API element is subject to removal in a future version.Execute each scenario.
-
Constructor Details
-
AbstractRequestResponseScenarioTests
public AbstractRequestResponseScenarioTests()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
setUp
public void setUp()Deprecated, for removal: This API element is subject to removal in a future version. -
testRequestResponseScenarios
public void testRequestResponseScenarios()Deprecated, for removal: This API element is subject to removal in a future version.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
Deprecated, for removal: This API element is subject to removal in a future version.Implement this method to define RequestResponse scenarios- Returns:
- - A List of
RequestResponseScenario
-
AbstractRequestResponseScenarioTest