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 Details

  • Method Details

    • hasNoReply

      public boolean hasNoReply()
      true if there is no reply.
    • reply

      public Reply reply()
      The reply. It will throw AssertionError if there was no reply.
    • replyOfType

      public <R extends Reply> R replyOfType(Class<R> replyClass)
      The reply as a given expected type. It will throw AssertionError if there is no reply or if the reply is of a different type.