ExpectStage

Functions

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

期望的第一个命令

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

expectCommandCount(0)

Link copied to clipboard
Link copied to clipboard
open fun verify(): ExpectedResult<T>

abstract fun verify(immediately: Boolean): ExpectedResult<T>

完成流程编排后,执行验证逻辑.