Package | Description |
---|---|
io.simplesource.api | |
io.simplesource.data | |
io.simplesource.kafka.testutils |
Modifier and Type | Method and Description |
---|---|
Result<CommandError,NonEmptyList<E>> |
CommandHandler.interpretCommand(K key,
A currentAggregate,
C command)
Determine whether you will accept the given command given the current aggregate and, if so, transform it into events.
|
Modifier and Type | Method and Description |
---|---|
<B> NonEmptyList<B> |
NonEmptyList.map(java.util.function.Function<A,B> op) |
static <A> NonEmptyList<A> |
NonEmptyList.of(A a,
A... as) |
Modifier and Type | Method and Description |
---|---|
Optional<NonEmptyList<E>> |
Result.failureReasons()
If this is a failure, return the error reasons for that failure, if not return nothing.
|
static <A> Optional<NonEmptyList<A>> |
NonEmptyList.fromList(List<A> l) |
Modifier and Type | Method and Description |
---|---|
static <E,T> FutureResult<E,T> |
FutureResult.fail(NonEmptyList<E> errors) |
static <E,S> Result<E,S> |
Result.failure(NonEmptyList<E> errors)
Factory method to creates a Failed
Result from a {@link NonEmptyList< E >} } |
Modifier and Type | Method and Description |
---|---|
<R> CompletableFuture<R> |
FutureResult.fold(java.util.function.Function<NonEmptyList<E>,R> e,
java.util.function.Function<T,R> f) |
abstract <T> T |
Result.fold(java.util.function.Function<NonEmptyList<E>,T> f,
java.util.function.Function<A,T> s)
Turn this Result into a destination type by supplying functions
from the list of failure errors, or a function from the contained value.
|
Modifier and Type | Method and Description |
---|---|
AggregateTestHelper.PublishResponse |
AggregateTestHelper.PublishBuilder.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 |
AggregateTestHelper.PublishBuilder.expectingFailure(NonEmptyList<CommandError.Reason> expectedErrorCodes)
Publish the command and assert that the call failed.
|
Modifier and Type | Method and Description |
---|---|
void |
AggregateTestHelper.PublishBuilder.expectingFailure(java.util.function.Consumer<NonEmptyList<CommandError>> failureValidator)
Publish the command and assert that the call failed.
|
Copyright © 2019. All rights reserved.