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

Properties

Link copied to clipboard

The public service provider where services are registered.

Functions

Link copied to clipboard
open override fun inject(inject: ServiceProvider.() -> Unit)

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.