| Modifier and Type | Method | Description |
|---|---|---|
AggregateTestHelper.PublishResponse |
expecting(io.simplesource.data.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(io.simplesource.data.NonEmptyList<io.simplesource.api.CommandError.Reason> expectedErrorCodes) |
Publish the command and assert that the call failed.
|
void |
expectingFailure(java.util.function.Consumer<io.simplesource.data.NonEmptyList<io.simplesource.api.CommandError>> failureValidator) |
Publish the command and assert that the call failed.
|
public AggregateTestHelper.PublishResponse expecting(io.simplesource.data.NonEmptyList<E> expectedEvents, A expectedAggregate)
expectedAggregate - the list of expected eventsexpectedAggregate - the expected aggregate statepublic void expectingFailure(java.util.function.Consumer<io.simplesource.data.NonEmptyList<io.simplesource.api.CommandError>> failureValidator)
failureValidator - the failure reasons are provided for validationpublic void expectingFailure(io.simplesource.data.NonEmptyList<io.simplesource.api.CommandError.Reason> expectedErrorCodes)
expectedErrorCodes - expected error codes contains in each of the generated failure reasonsCopyright © 2018. All rights reserved.