CommandResult
The result of running a command.
Attributes
- Source
- EventSourcedBehaviorTestKit.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
Members list
Value members
Abstract methods
The command that was run.
The first event. It will throw AssertionError if there is no event.
The first event. It will throw AssertionError if there is no event.
Attributes
The first event as a given expected type. It will throw AssertionError if there is no event or if the event is of a different type.
The first event as a given expected type. It will throw AssertionError if there is no event or if the event is of a different type.
Attributes
The events that were emitted by the command, and persisted. In many cases only one event is emitted and then it's more convenient to use CommandResult.event or CommandResult.eventOfType.
The events that were emitted by the command, and persisted. In many cases only one event is emitted and then it's more convenient to use CommandResult.event or CommandResult.eventOfType.
Attributes
true if no events were emitted by the command.
The state after applying the events.
The state as a given expected type. It will throw AssertionError if the state is of a different type.
The state as a given expected type. It will throw AssertionError if the state is of a different type.