StatelessSagaDsl
DSL interface for defining stateless saga test specifications.
This interface provides the entry point for configuring and executing stateless saga tests with customizable service providers, command gateways, and message factories.
Parameters
T
The type of the saga being tested.
Inheritors
Functions
Link copied to clipboard
Injects services into the public service provider.
Link copied to clipboard
abstract fun on(serviceProvider: ServiceProvider = SimpleServiceProvider(), commandGateway: CommandGateway = defaultCommandGateway(), commandMessageFactory: CommandMessageFactory = SimpleCommandMessageFactory(
validator = TestValidator,
commandBuilderRewriterRegistry = SimpleCommandBuilderRewriterRegistry(),
), block: WhenDsl<T>.() -> Unit)
Defines a test scenario with optional custom components.