Packages

package scaladsl

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. All

Type Members

  1. trait EventSourcedBehaviorTestKit[Command, Event, State] extends AnyRef
    Annotations
    @ApiMayChange() @DoNotInherit()
  2. class PersistenceTestKit extends PersistenceTestKitOps[PersistentRepr, JournalOperation] with ExpectOps[PersistentRepr] with HasStorage[JournalOperation, PersistentRepr]

    Class for testing events of persistent actors.

    Class for testing events of persistent actors.

    NOTE! ActorSystem must be configured with PersistenceTestKitPlugin. The configuration can be retrieved with PersistenceTestKitPlugin.config.

    Annotations
    @ApiMayChange()
  3. class SnapshotTestKit extends CommonTestKitOps[(SnapshotMetadata, Any), SnapshotOperation] with PolicyOpsTestKit[SnapshotOperation] with ExpectOps[(SnapshotMetadata, Any)] with HasStorage[SnapshotOperation, (SnapshotMetadata, Any)]

    Class for testing snapshots of persistent actors.

    Class for testing snapshots of persistent actors.

    NOTE! ActorSystem must be configured with PersistenceTestKitSnapshotPlugin. The configuration can be retrieved with PersistenceTestKitSnapshotPlugin.config.

    Annotations
    @ApiMayChange()

Value Members

  1. object EventSourcedBehaviorTestKit

    Testing of akka.persistence.typed.scaladsl.EventSourcedBehavior implementations.

    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()
  2. object PersistenceInit

    Test utility to initialize persistence plugins.

    Test utility to initialize persistence plugins. Useful when initialization order or coordination is needed. For example to avoid creating tables concurrently.

  3. object PersistenceTestKit
    Annotations
    @ApiMayChange()
  4. object SnapshotTestKit
    Annotations
    @ApiMayChange()

Ungrouped