defaultCommandGateway
Creates a default command gateway configured for stateless saga testing.
This method returns a pre-configured CommandGateway with in-memory components suitable for testing sagas in isolation without external dependencies. The gateway uses a test-specific endpoint name and no-op idempotency checking to simplify test scenarios and avoid external service interactions.
The default configuration includes:
In-memory command bus for local message handling
Test validator for command validation
No-op idempotency checker to prevent duplicate command filtering
Local command wait notifier for synchronous testing
Example:
val gateway = SagaVerifier.defaultCommandGateway()
// Use gateway in custom saga verifier setupContent copied to clipboard
Return
a CommandGateway instance configured for testing stateless sagas
Throws
if gateway initialization fails