DefaultStatelessSagaDsl

Default implementation of StatelessSagaDsl for creating dynamic saga tests.

This class provides the entry point for configuring and executing stateless saga tests with customizable service providers, command gateways, and message factories. It creates dynamic test nodes that can be executed by JUnit 5.

Parameters

T

The type of the saga being tested.

Constructors

Link copied to clipboard
constructor(processorType: Class<T>)

Properties

Link copied to clipboard
open override val dynamicNodes: MutableList<DynamicNode>

A mutable list of dynamic test nodes that can be modified by subclasses.

Link copied to clipboard

A service provider for public services accessible during testing.

Functions

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

Injects services into the public service provider.

Link copied to clipboard
open override fun on(serviceProvider: ServiceProvider, commandGateway: CommandGateway, commandMessageFactory: CommandMessageFactory, block: WhenDsl<T>.() -> Unit)

Configures and executes a test scenario with the provided components.