Interface EventSourcedBehaviorTestKit.CommandResultWithReply<Command,Event,State,Reply>
-
- All Superinterfaces:
EventSourcedBehaviorTestKit.CommandResult<Command,Event,State>
- Enclosing interface:
- EventSourcedBehaviorTestKit<Command,Event,State>
public static interface EventSourcedBehaviorTestKit.CommandResultWithReply<Command,Event,State,Reply> extends EventSourcedBehaviorTestKit.CommandResult<Command,Event,State>
The result of running a command with areplyTo: ActorRef[R]
, i.e. therunCommand
with aActorRef[R] => Command
parameter.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
hasNoReply()
true
if there is no reply.Reply
reply()
The reply.<R extends Reply>
RreplyOfType(scala.reflect.ClassTag<R> evidence$3)
The reply as a given expected type.-
Methods inherited from interface akka.persistence.testkit.scaladsl.EventSourcedBehaviorTestKit.CommandResult
command, event, eventOfType, events, hasNoEvents, state, stateOfType
-
-
-
-
Method Detail
-
hasNoReply
boolean hasNoReply()
true
if there is no reply.
-
reply
Reply reply()
The reply. It will throwAssertionError
if there was no reply.
-
replyOfType
<R extends Reply> R replyOfType(scala.reflect.ClassTag<R> evidence$3)
The reply as a given expected type. It will throwAssertionError
if there is no reply or if the reply is of a different type.
-
-