Class WorkflowTestSteppingModeEnhancer

java.lang.Object
io.axoniq.framework.workflow.runtime.test.configuration.WorkflowTestSteppingModeEnhancer
All Implemented Interfaces:
ConfigurationEnhancer

public class WorkflowTestSteppingModeEnhancer extends Object implements ConfigurationEnhancer
Test configuration enhancer that switches workflow execution into stepping mode.

Stepping mode is intended for fixture-style workflow tests where the test should control when an execute(...) step finishes and when scheduled workflow work becomes due. Instead of letting the runtime run execute-step actions and time-based tasks immediately, this enhancer installs test doubles that pause those transitions until the test explicitly releases them.

This enhancer registers three key components:

Use this enhancer when building custom test configurations that need the same stepping behavior as WorkflowTestDriver.stepper(io.axoniq.framework.workflow.configuration.WorkflowModule, boolean, java.util.function.UnaryOperator) or WorkflowTestFixture. Those higher-level APIs already register this enhancer automatically. Register it directly only when you are wiring the workflow test configuration yourself.

Since:
5.4.0
Author:
Simon Zambrovski
  • Constructor Details

    • WorkflowTestSteppingModeEnhancer

      public WorkflowTestSteppingModeEnhancer()
  • Method Details