public interface ContinuedGivenState extends WhenState
| Modifier and Type | Method and Description |
|---|---|
GivenAggregateEventPublisher |
andThenAggregate(Object 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(org.joda.time.DateTime newDateTime)
Simulate time shifts in the current given state.
|
ContinuedGivenState |
andThenTimeElapses(org.joda.time.Duration elapsedTime)
Simulate time shifts in the current given state.
|
whenAggregate, whenPublishingA, whenTimeAdvancesTo, whenTimeElapsesGivenAggregateEventPublisher andThenAggregate(Object aggregateIdentifier)
andThenAggregate(someIdentifier).published(someEvents)
aggregateIdentifier - The identifier of the aggregate the events should appear to come fromContinuedGivenState andThenTimeElapses(org.joda.time.Duration elapsedTime)
elapsedTime - The amount of time that will elapseContinuedGivenState andThenTimeAdvancesTo(org.joda.time.DateTime newDateTime)
newDateTime - The time to advance the clock toContinuedGivenState andThenAPublished(Object event)
event has been published in the past. This event is sent to the associated
sagas.event - The event to publishCopyright © 2010-2014. All Rights Reserved.