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 a
replyTo: ActorRef[R], i.e. the runCommand with a
ActorRef[R] => Command parameter.-
Method Summary
Modifier and TypeMethodDescriptionbooleantrueif there is no 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 org.apache.pekko.persistence.testkit.scaladsl.EventSourcedBehaviorTestKit.CommandResult
command, event, eventOfType, events, hasNoEvents, state, stateOfType
-
Method Details
-
hasNoReply
boolean hasNoReply()trueif there is no reply. -
reply
Reply reply()The reply. It will throwAssertionErrorif there was no reply. -
replyOfType
The reply as a given expected type. It will throwAssertionErrorif there is no reply or if the reply is of a different type.
-