Class DurableStateBehaviorTestKit.CommandResult<Command,State>

java.lang.Object
org.apache.pekko.persistence.testkit.javadsl.DurableStateBehaviorTestKit.CommandResult<Command,State>
Direct Known Subclasses:
DurableStateBehaviorTestKit.CommandResultWithReply
Enclosing class:
DurableStateBehaviorTestKit<Command,State>

public static class DurableStateBehaviorTestKit.CommandResult<Command,State> extends Object
The result of running a command.
  • Constructor Details

  • Method Details

    • command

      public Command command()
      The command that was run.
    • state

      public State state()
      The state after the command has been processed.
    • stateOfType

      public <S extends State> S stateOfType(Class<S> stateClass)
      The state as a given expected type. It will throw AssertionError if the state is of a different type.