Testing of pekko.persistence.typed.javadsl.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.
Attributes
- Companion
- class
- Source
- EventSourcedBehaviorTestKit.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
Members list
Type members
Classlikes
The result of running a command.
The result of running a command.
Attributes
- Source
- EventSourcedBehaviorTestKit.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
The result of running a command with a ActorRef<R> replyTo, i.e. the runCommand with a Function<ActorRef<R>, Command> parameter.
The result of running a command with a ActorRef<R> replyTo, i.e. the runCommand with a Function<ActorRef<R>, Command> parameter.
Attributes
- Source
- EventSourcedBehaviorTestKit.scala
- Supertypes
The result of restarting the behavior.
The result of restarting the behavior.
Attributes
- Source
- EventSourcedBehaviorTestKit.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Customization of which serialization checks that are performed. equals must be implemented (or using case class) when verifyEquality is enabled.
Customization of which serialization checks that are performed. equals must be implemented (or using case class) when verifyEquality is enabled.
Attributes
- Source
- EventSourcedBehaviorTestKit.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Value members
Concrete methods
Factory method to create a new EventSourcedBehaviorTestKit.
Factory method to create a new EventSourcedBehaviorTestKit.
Attributes
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 in the commands, events and state if verifyEquality is enabled.
Attributes
Concrete fields
The configuration to be included in the configuration of the ActorSystem. Typically used as constructor parameter to TestKitJunitResource. The configuration enables the in-memory journal and snapshot storage.
The configuration to be included in the configuration of the ActorSystem. Typically used as constructor parameter to TestKitJunitResource. The configuration enables the in-memory journal and snapshot storage.