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. therunCommandwith aActorRef[R] => Commandparameter.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanhasNoReply()trueif there is no reply.Replyreply()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()
trueif there is no reply.
-
reply
Reply reply()
The reply. It will throwAssertionErrorif 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 throwAssertionErrorif there is no reply or if the reply is of a different type.
-
-