Packages

object DurableStateBehaviorTestKit

Testing of pekko.persistence.typed.state.javadsl.DurableStateBehavior implementations. It supports running one command at a time and asserting that the synchronously returned result is as expected. The result contains the new state after the command has been processed. It also has support for verifying the reply to a command.

Serialization of commands and state is verified automatically.

Annotations
@ApiMayChange()
Source
DurableStateBehaviorTestKit.scala
Since

2.0.0

Linear Supertypes
Content Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DurableStateBehaviorTestKit
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. class CommandResult[Command, State] extends AnyRef

    The result of running a command.

    The result of running a command.

    Annotations
    @DoNotInherit()
  2. final class CommandResultWithReply[Command, State, Reply] extends CommandResult[Command, State]

    The result of running a command with an ActorRef<R> replyTo, i.e.

    The result of running a command with an ActorRef<R> replyTo, i.e. the runCommand with a Function<ActorRef<R>, Command> parameter.

  3. final class RestartResult[State] extends AnyRef

    The result of restarting the behavior.

  4. final class SerializationSettings extends AnyRef

    Customization of which serialization checks that are performed.

    Customization of which serialization checks that are performed. equals must be implemented when verifyEquality is enabled.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  6. val config: Config

    The configuration to be included in the configuration of the ActorSystem.

    The configuration to be included in the configuration of the ActorSystem. Typically used as constructor parameter to TestKitJunitResource. The configuration enables the in-memory durable state store.

  7. def create[Command, State](system: ActorSystem[_], behavior: Behavior[Command], serializationSettings: SerializationSettings): DurableStateBehaviorTestKit[Command, State]

    Factory method to create a new DurableStateBehaviorTestKit with custom SerializationSettings.

    Factory method to create a new DurableStateBehaviorTestKit with custom SerializationSettings.

    Note that equals must be implemented in the commands and state if verifyEquality is enabled.

  8. def create[Command, State](system: ActorSystem[_], behavior: Behavior[Command]): DurableStateBehaviorTestKit[Command, State]

    Factory method to create a new DurableStateBehaviorTestKit.

  9. val disabledSerializationSettings: SerializationSettings
  10. val enabledSerializationSettings: SerializationSettings
  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  13. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  19. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  20. def toString(): String
    Definition Classes
    AnyRef → Any
  21. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  22. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  23. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from AnyRef

Inherited from Any

Ungrouped