checkpoint
Deprecated
Checkpoints are replaced by awaitSignal; with the test DSL, send the next step instead: send(NextStep). Removed in 3.0.
Adds a default checkpoint that will be validated during testing.
⚠️ Experimental API: This API is experimental and may change or be removed in future versions.
This method sets up a checkpoint that will be automatically validated during test execution. The checkpoint validation happens after the main test transmission is processed.
Return
This TransmissionTest instance for method chaining
Example usage:
transformer.test()
.checkpoint(SecurityCheckpoint.adminApproval)
.testSignal(AdminSignal.DeleteUser(userId)) {
// Test that user was deleted after admin approval
val deletionData = lastData<UserData.Deleted>()
assertNotNull(deletionData)
}Content copied to clipboard
Parameters
checkpoint
The checkpoint contract to validate