public class SagaUnitTestSupport<T>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SAGA_ID |
Constructor and Description |
---|
SagaUnitTestSupport() |
Modifier and Type | Method and Description |
---|---|
SagaUnitTestSupport<T> |
andGiven() |
SagaUnitTestSupport<T> |
assertSagaData(java.util.function.Consumer<T> sagaDataConsumer) |
SagaUnitTestSupport<T> |
command(io.eventuate.tram.commands.common.Command command) |
SagaUnitTestSupport<T> |
expect() |
SagaUnitTestSupport<T> |
expectCompletedSuccessfully() |
void |
expectException(java.lang.Exception expectedCreateException) |
SagaUnitTestSupport<T> |
expectRolledBack() |
SagaUnitTestSupport<T> |
failureReply() |
SagaUnitTestSupport<T> |
failureReply(java.lang.Object reply) |
static SagaUnitTestSupport<?> |
given() |
<T> SagaUnitTestSupport<T> |
saga(Saga<T> saga,
T sagaData) |
SagaUnitTestSupport<T> |
successReply() |
SagaUnitTestSupport<T> |
successReply(java.lang.Object reply) |
SagaUnitTestSupport<T> |
to(java.lang.String commandChannel) |
public static final java.lang.String SAGA_ID
public static SagaUnitTestSupport<?> given()
public <T> SagaUnitTestSupport<T> saga(Saga<T> saga, T sagaData)
public SagaUnitTestSupport<T> expect()
public SagaUnitTestSupport<T> command(io.eventuate.tram.commands.common.Command command)
public SagaUnitTestSupport<T> to(java.lang.String commandChannel)
public SagaUnitTestSupport<T> andGiven()
public SagaUnitTestSupport<T> successReply()
public SagaUnitTestSupport<T> successReply(java.lang.Object reply)
public SagaUnitTestSupport<T> failureReply()
public SagaUnitTestSupport<T> failureReply(java.lang.Object reply)
public SagaUnitTestSupport<T> expectCompletedSuccessfully()
public SagaUnitTestSupport<T> expectRolledBack()
public void expectException(java.lang.Exception expectedCreateException)
public SagaUnitTestSupport<T> assertSagaData(java.util.function.Consumer<T> sagaDataConsumer)