Class EventSourcedBehaviorTestKit.SerializationSettings
java.lang.Object
org.apache.pekko.persistence.testkit.javadsl.EventSourcedBehaviorTestKit.SerializationSettings
- Enclosing class:
- EventSourcedBehaviorTestKit<Command,
Event, State>
Customization of which serialization checks that are performed.
equals must be implemented (or using case class) when verifyEquality is enabled.-
Constructor Summary
ConstructorsConstructorDescriptionSerializationSettings(boolean enabled, boolean verifyEquality, boolean verifyCommands, boolean verifyEvents, boolean verifyState) -
Method Summary
Modifier and TypeMethodDescriptionbooleanenabled()booleanbooleanbooleanbooleanwithEnabled(boolean value) withVerifyCommands(boolean value) withVerifyEquality(boolean value) withVerifyEvents(boolean value) withVerifyState(boolean value)
-
Constructor Details
-
SerializationSettings
public SerializationSettings(boolean enabled, boolean verifyEquality, boolean verifyCommands, boolean verifyEvents, boolean verifyState)
-
-
Method Details
-
enabled
public boolean enabled() -
verifyCommands
public boolean verifyCommands() -
verifyEquality
public boolean verifyEquality() -
verifyEvents
public boolean verifyEvents() -
verifyState
public boolean verifyState() -
withEnabled
-
withVerifyCommands
-
withVerifyEquality
-
withVerifyEvents
-
withVerifyState
-