Class EventSourcedBehaviorTestKit.CommandResultWithReply<Command,Event,State,Reply>
java.lang.Object
org.apache.pekko.persistence.testkit.javadsl.EventSourcedBehaviorTestKit.CommandResult<Command,Event,State>
org.apache.pekko.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 a
ActorRef replyTo
, i.e. the runCommand
with a
Function<ActorRef, Command>
parameter.-
Constructor Summary
ConstructorsConstructorDescriptionCommandResultWithReply
(EventSourcedBehaviorTestKit.CommandResultWithReply<Command, Event, State, Reply> delegate) -
Method Summary
Modifier and TypeMethodDescriptionboolean
true
if there is no reply.reply()
The reply.<R extends Reply>
RreplyOfType
(Class<R> replyClass) The reply as a given expected type.Methods inherited from class org.apache.pekko.persistence.testkit.javadsl.EventSourcedBehaviorTestKit.CommandResult
command, event, eventOfType, events, hasNoEvents, state, stateOfType
-
Constructor Details
-
CommandResultWithReply
public CommandResultWithReply(EventSourcedBehaviorTestKit.CommandResultWithReply<Command, Event, State, Reply> delegate)
-
-
Method Details
-
hasNoReply
public boolean hasNoReply()true
if there is no reply. -
reply
The reply. It will throwAssertionError
if there was no reply. -
replyOfType
The reply as a given expected type. It will throwAssertionError
if there is no reply or if the reply is of a different type.
-