Implementations of the Flow and Interaction interfaces
- ../flow Testing framework
This module provides an API by which Interactions can be built and combined into Flow instances.
To create a Flow from scratch, use Creator. In this case we must supply all of the test case's data - define every interaction and every scrap of message content.
To create a Flow that is based on an existing Flow, use Deriver. In this case we only need to supply the updates that distinguish the derived flow from its basis - define the diff between the two flows.
Example of API usage can be found in the unit tests:
and in the example system model project.
After importing the bom
:
<dependency>
<!-- flow construction -->
<groupId>com.mastercard.test.flow</groupId>
<artifactId>builder</artifactId>
</dependency>
Note that the above assumes that your system model is being defined in a module on its own and the system model is the published artifact of the module.
If the system model is being defined directly in the system's test suite then you should add <scope>test</scope>
to this dependency.