Package org.axonframework.test.saga
Interface WhenAggregateEventPublisher
public interface WhenAggregateEventPublisher
Interface to an object that publishes events on behalf of an aggregate. The sequence number on the events must be
exactly sequential per aggregate.
- Since:
- 1.1
- Author:
- Allard Buijze
-
Method Summary
Modifier and TypeMethodDescriptionRegister the giveneventto be published on behalf of an aggregate.Register the giveneventto be published on behalf of an aggregate, with given additionalmetaData.
-
Method Details
-
publishes
Register the giveneventto be published on behalf of an aggregate. Activity caused by this event on the CommandBus and EventBus is monitored and can be checked in the FixtureExecutionResult.- Parameters:
event- The event published by the aggregate- Returns:
- a reference to the test results for the validation phase
-
publishes
Register the giveneventto be published on behalf of an aggregate, with given additionalmetaData. Activity caused by this event on the CommandBus and EventBus is monitored and can be checked in the FixtureExecutionResult.- Parameters:
event- The event published by the aggregatemetaData- The meta data to attach to the event- Returns:
- a reference to the test results for the validation phase
-