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 runCommandwith aFunctionparameter., 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 booleanhasNoReply()trueif there is no reply.Replyreply()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()
trueif there is no reply. 
- 
reply
public Reply reply()
The reply. It will throwAssertionErrorif 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 throwAssertionErrorif there is no reply or if the reply is of a different type. 
 - 
 
 -