Interface AxonTestPhase.Setup

All Known Implementing Classes:
AxonTestFixture
Enclosing interface:
AxonTestPhase

public static interface AxonTestPhase.Setup
Interface describing the initial setup phase of a test fixture. This phase allows configuring the test fixture before starting the test execution.

From this phase, you can transition to either the Given phase to define initial state, or directly to the When phase if no prior state is needed.

  • Method Summary

    Modifier and Type
    Method
    Description
    Transition to the Given phase to define the initial state of the system before testing.
    void
    Stops the fixture, releasing any active resources, like registered handlers or pending event processing tasks.
    Transition directly to the When phase, skipping the Given phase, which implies no prior state.
  • Method Details

    • given

      Transition to the Given phase to define the initial state of the system before testing.
      Returns:
      A AxonTestPhase.Given instance that allows defining the initial state.
    • when

      Transition directly to the When phase, skipping the Given phase, which implies no prior state.
      Returns:
      A AxonTestPhase.When instance that allows executing the test.
    • stop

      void stop()
      Stops the fixture, releasing any active resources, like registered handlers or pending event processing tasks.