CommandResultWithReply

org.apache.pekko.persistence.testkit.scaladsl.EventSourcedBehaviorTestKit.CommandResultWithReply
@DoNotInherit
trait CommandResultWithReply[Command, Event, State, Reply] extends CommandResult[Command, Event, State]

The result of running a command with a replyTo: ActorRef[R], i.e. the runCommand with a ActorRef[R] => Command parameter.

Attributes

Source
EventSourcedBehaviorTestKit.scala
Graph
Supertypes
trait CommandResult[Command, Event, State]
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

true if there is no reply.

true if there is no reply.

Attributes

Source
EventSourcedBehaviorTestKit.scala
def reply: Reply

The reply. It will throw AssertionError if there was no reply.

The reply. It will throw AssertionError if there was no reply.

Attributes

Source
EventSourcedBehaviorTestKit.scala
def replyOfType[R <: Reply : ClassTag]: R

The reply as a given expected type. It will throw AssertionError if there is no reply or if the reply is of a different type.

The reply as a given expected type. It will throw AssertionError if there is no reply or if the reply is of a different type.

Attributes

Source
EventSourcedBehaviorTestKit.scala

Inherited and Abstract methods

def command: Command

The command that was run.

The command that was run.

Attributes

Inherited from:
CommandResult
Source
EventSourcedBehaviorTestKit.scala
def event: Event

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

Inherited from:
CommandResult
Source
EventSourcedBehaviorTestKit.scala
def eventOfType[E <: Event : ClassTag]: E

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

Inherited from:
CommandResult
Source
EventSourcedBehaviorTestKit.scala
def events: Seq[Event]

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

Inherited from:
CommandResult
Source
EventSourcedBehaviorTestKit.scala

true if no events were emitted by the command.

true if no events were emitted by the command.

Attributes

Inherited from:
CommandResult
Source
EventSourcedBehaviorTestKit.scala
def state: State

The state after applying the events.

The state after applying the events.

Attributes

Inherited from:
CommandResult
Source
EventSourcedBehaviorTestKit.scala
def stateOfType[S <: State : ClassTag]: S

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.

Attributes

Inherited from:
CommandResult
Source
EventSourcedBehaviorTestKit.scala