VerifiedStage

interface VerifiedStage<S : Any>

Properties

Link copied to clipboard
Link copied to clipboard
open val stateRoot: S
Link copied to clipboard

Functions

Link copied to clipboard
abstract fun fork(verifyError: Boolean = false, serviceProviderSupplier: (ServiceProvider) -> ServiceProvider = { require(it is SimpleServiceProvider) it.copy() }, commandAggregateFactorySupplier: () -> CommandAggregateFactory = { SimpleCommandAggregateFactory(InMemoryEventStore()) }, handle: GivenStage<S>.(ExpectedResult<S>) -> Unit): VerifiedStage<S>

为当前环境创建一个完全独立的测试分支上下文

Link copied to clipboard
abstract fun then(verifyError: Boolean = false): GivenStage<S>