Package org.axonframework.test.saga
@NullMarked
package org.axonframework.test.saga
Test support for the sagas carried by
axon-legacy.
The package name matches Axon Framework 4, so a migrating saga test suite keeps its imports. What it contains is a
thin layer over AxonTestFixture: the given-when-then flow, the recording of
published events and dispatched commands, and the configuration all come from there, while this package adds the
saga-specific pieces, such as asserting on the contents of a
SagaStore.
A test that does not need the Axon Framework 4 API can use AxonTestFixture directly and reach for the
assertion helpers here through its then().expect(..) operation.
-
ClassDescriptionInterface describing methods that can be executed after the first "given" state has been supplied.Interface describing action to perform on a
SagaTestFixtureduring the configuration phase.Interface towards an object that contains the results of a Saga test fixture execution.Interface to an object that publishes events on behalf of an aggregate.Assertions on the contents of theSagaStoreof a runningConfiguration.Fixture for testing Sagas in a given-when-then style, carrying the Axon Framework 4 API so a migrating test suite keeps its shape.Interface to an object that publishes events on behalf of an aggregate, recording what the Saga does in reaction.Interface providing an API to methods in the "when" state of the fixture execution.