StatelessSagaExpecter

Functions

Link copied to clipboard
abstract fun expect(expected: ExpectedResult<T>.() -> Unit): SE
Link copied to clipboard
open fun <C : Any> expectCommand(expected: CommandMessage<C>.() -> Unit): SE

期望的第一个命令

Link copied to clipboard
open fun <C : Any> expectCommandBody(expected: C.() -> Unit): SE
Link copied to clipboard
open fun expectCommandCount(expected: Int): SE
Link copied to clipboard
open fun expectCommandIterator(expected: CommandIterator.() -> Unit): SE
Link copied to clipboard
open fun expectCommandStream(expected: CommandStream.() -> Unit): SE
Link copied to clipboard
open fun expectCommandType(vararg expected: Class<*>): SE
open fun expectCommandType(vararg expected: KClass<*>): SE
Link copied to clipboard
open fun expectError(): SE
open fun <E : Throwable> expectError(expected: E.() -> Unit): SE
Link copied to clipboard
open fun <E : Throwable> expectErrorType(expected: Class<E>): SE
open fun <E : Throwable> expectErrorType(expected: KClass<E>): SE
Link copied to clipboard
open fun expectNoCommand(): SE

expectCommandCount(0)

Link copied to clipboard
open fun expectNoError(): SE