Package akka.persistence.testkit.javadsl
Class EventSourcedBehaviorTestKit.CommandResultWithReply<Command,Event,State,Reply>
- java.lang.Object
-
- akka.persistence.testkit.javadsl.EventSourcedBehaviorTestKit.CommandResult<Command,Event,State>
-
- akka.persistence.testkit.javadsl.EventSourcedBehaviorTestKit.CommandResultWithReply<Command,Event,State,Reply>
-
- Enclosing class:
- EventSourcedBehaviorTestKit<Command,Event,State>
public static final class EventSourcedBehaviorTestKit.CommandResultWithReply<Command,Event,State,Reply> extends EventSourcedBehaviorTestKit.CommandResult<Command,Event,State>
The result of running a command with aActorRef
, i.e. thereplyTo runCommand
with aFunction
parameter., Command>
-
-
Constructor Summary
Constructors Constructor Description CommandResultWithReply(EventSourcedBehaviorTestKit.CommandResultWithReply<Command,Event,State,Reply> delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNoReply()
true
if there is no reply.Reply
reply()
The reply.<R extends Reply>
RreplyOfType(java.lang.Class<R> replyClass)
The reply as a given expected type.-
Methods inherited from class akka.persistence.testkit.javadsl.EventSourcedBehaviorTestKit.CommandResult
command, event, eventOfType, events, hasNoEvents, state, stateOfType
-
-
-
-
Constructor Detail
-
CommandResultWithReply
public CommandResultWithReply(EventSourcedBehaviorTestKit.CommandResultWithReply<Command,Event,State,Reply> delegate)
-
-
Method Detail
-
hasNoReply
public boolean hasNoReply()
true
if there is no reply.
-
reply
public Reply reply()
The reply. It will throwAssertionError
if there was no reply.
-
replyOfType
public <R extends Reply> R replyOfType(java.lang.Class<R> replyClass)
The reply as a given expected type. It will throwAssertionError
if there is no reply or if the reply is of a different type.
-
-