Packages

object EventSourcedBehaviorTestKit

Testing of akka.persistence.typed.scaladsl.EventSourcedBehavior implementations. It supports running one command at a time and you can assert that the synchronously returned result is as expected. The result contains the events emitted by the command and the new state after applying the events. It also has support for verifying the reply to a command.

Serialization of commands, events and state are verified automatically.

Annotations
@ApiMayChange()
Source
EventSourcedBehaviorTestKit.scala
Linear Supertypes
Content Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. EventSourcedBehaviorTestKit
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. trait CommandResult[Command, Event, State] extends AnyRef

    The result of running a command.

    The result of running a command.

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

    The result of running a command with a replyTo: ActorRef[R], i.e.

    The result of running a command with a replyTo: ActorRef[R], i.e. the runCommand with a ActorRef[R] => Command parameter.

    Annotations
    @DoNotInherit()
  3. trait RestartResult[State] extends AnyRef

    The result of restarting the behavior.

    The result of restarting the behavior.

    Annotations
    @DoNotInherit()
  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 (or using case class) 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. def apply[Command, Event, State](system: ActorSystem[_], behavior: Behavior[Command], serializationSettings: SerializationSettings): EventSourcedBehaviorTestKit[Command, Event, State]

    Factory method to create a new EventSourcedBehaviorTestKit with custom SerializationSettings.

    Factory method to create a new EventSourcedBehaviorTestKit with custom SerializationSettings.

    Note that equals must be implemented (or using case class) in the commands, events and state if verifyEquality is enabled.

  5. def apply[Command, Event, State](system: ActorSystem[_], behavior: Behavior[Command]): EventSourcedBehaviorTestKit[Command, Event, State]

    Factory method to create a new EventSourcedBehaviorTestKit.

  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  8. 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 ScalaTestWithActorTestKit. The configuration enables the in-memory journal and snapshot storage.

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

Deprecated Value Members

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

Inherited from AnyRef

Inherited from Any

Ungrouped