Package org.axonframework.test.fixture
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 TypeMethodDescriptiongiven()Transition to the Given phase to define the initial state of the system before testing.voidstop()Stops the fixture, releasing any active resources, like registered handlers or pending event processing tasks.when()Transition directly to the When phase, skipping the Given phase, which implies no prior state.
-
Method Details
-
given
AxonTestPhase.Given given()Transition to the Given phase to define the initial state of the system before testing.- Returns:
- A
AxonTestPhase.Giveninstance that allows defining the initial state.
-
when
AxonTestPhase.When when()Transition directly to the When phase, skipping the Given phase, which implies no prior state.- Returns:
- A
AxonTestPhase.Wheninstance that allows executing the test.
-
stop
void stop()Stops the fixture, releasing any active resources, like registered handlers or pending event processing tasks.
-