on
open override fun on(serviceProvider: ServiceProvider, commandGateway: CommandGateway, commandMessageFactory: CommandMessageFactory, block: WhenDsl<T>.() -> Unit)
Configures and executes a test scenario with the provided components.
This method sets up the test environment by copying public services to the provided service provider, creating a saga verifier, and executing the test block that defines the "when" conditions and expectations. The resulting dynamic test nodes are collected for JUnit 5 execution.
Parameters
serviceProvider
The service provider for dependency injection.
commandGateway
The command gateway for sending commands.
commandMessageFactory
The factory for creating command messages.
block
The test specification block defining the scenario.