com.lightbend.lagom.scaladsl.testkit
Accumulated issues from all previous runs.
Initialize the entity.
Initialize the entity.
This can be used to simulate the startup of an entity, be passing some snapshot state, and then some additional events that weren't included in that entity.
The returned outcome contains the state with events applied to it and any issues with the state and events.
This method may not be invoked twice, and it also must not be invoked after passing commands to the run
method,
since that will automatically initialize the entity with an empty snapshot if not yet initialized.
The state to initialize the entity with.
The additional events to run before invoking recoveryCompleted
The outcome.
The entity will process the commands and the emitted events and side effects
are recorded and provided in the returned Outcome
.
The entity will process the commands and the emitted events and side effects
are recorded and provided in the returned Outcome
. Current state is also
included in the Outcome
.
run
may be invoked multiple times to divide the sequence of commands
into manageable steps. The Outcome
contains the events and side-effects of
the last run
, but the state is not reset between different runs.
A testing utility for verifying that a com.lightbend.lagom.scaladsl.persistence.PersistentEntity emits expected events and side-effects in response to incoming commands.
It also verifies that all commands, events, replies and state are serializable, and reports any such problems in the
issues
of theOutcome
.