public interface ContinuedGivenState extends WhenState
| Modifier and Type | Method and Description |
|---|---|
GivenAggregateEventPublisher |
andThenAggregate(String aggregateIdentifier)
Use this method to indicate that an aggregate with given identifier published certain events.
|
ContinuedGivenState |
andThenAPublished(Object event)
Indicates that the given
event has been published in the past. |
ContinuedGivenState |
andThenTimeAdvancesTo(java.time.ZonedDateTime newDateTime)
Simulate time shifts in the current given state.
|
ContinuedGivenState |
andThenTimeElapses(java.time.Duration elapsedTime)
Simulate time shifts in the current given state.
|
whenAggregate, whenPublishingA, whenTimeAdvancesTo, whenTimeElapsesGivenAggregateEventPublisher andThenAggregate(String aggregateIdentifier)
andThenAggregate(someIdentifier).published(someEvents)
aggregateIdentifier - The identifier of the aggregate the events should appear to come fromContinuedGivenState andThenTimeElapses(java.time.Duration elapsedTime) throws Exception
elapsedTime - The amount of time that will elapseExceptionContinuedGivenState andThenTimeAdvancesTo(java.time.ZonedDateTime newDateTime) throws Exception
newDateTime - The time to advance the clock toExceptionContinuedGivenState andThenAPublished(Object event) throws Exception
event has been published in the past. This event is sent to the associated
sagas.event - The event to publishExceptionCopyright © 2010-2016. All Rights Reserved.