Class 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.

Oliver Drotbohm
See Also: