Modifier and Type | Method and Description |
---|---|
AggregateTestHelper.PublishResponse |
expecting(NonEmptyList<E> expectedEvents,
A expectedAggregate)
Publish the command and assert that the publishCommand was success generating the given events and aggregate_update update.
|
void |
expectingFailure(java.util.function.Consumer<NonEmptyList<CommandError>> failureValidator)
Publish the command and assert that the call failed.
|
void |
expectingFailure(NonEmptyList<CommandError.Reason> expectedErrorCodes)
Publish the command and assert that the call failed.
|
public AggregateTestHelper.PublishResponse expecting(NonEmptyList<E> expectedEvents, A expectedAggregate)
expectedAggregate
- the list of expected eventsexpectedAggregate
- the expected aggregate statepublic void expectingFailure(java.util.function.Consumer<NonEmptyList<CommandError>> failureValidator)
failureValidator
- the failure reasons are provided for validationpublic void expectingFailure(NonEmptyList<CommandError.Reason> expectedErrorCodes)
expectedErrorCodes
- expected error codes contains in each of the generated failure reasonsCopyright © 2019. All rights reserved.