Class Scenario

java.lang.Object
org.springframework.modulith.test.Scenario

public class Scenario extends Object
A DSL to define integration testing scenarios for application modules. A Scenario starts with a stimulus on the system, usually a component invocation (see stimulate(Function) or event publication (see publish(Object...)) and a definition of the expected outcome. That can be a state change observed by invoking application module components (see Scenario.When.andWaitForStateChange(Supplier)) or another event being published (see Scenario.When.andWaitForEventOfType(Class)), concluded by additional verifications.

Scenario can be used as JUnit test method parameter in ApplicationModuleTests.

Author:
Oliver Drotbohm
See Also: