ExpectStage

interface ExpectStage<T : Any>

Functions

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

期望的第一个命令

Link copied to clipboard
open fun <C : Any> expectCommandBody(expected: Consumer<C>): ExpectStage<T>
Link copied to clipboard
open fun expectCommandCount(expected: Int): ExpectStage<T>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun expectCommandType(vararg expected: Class<*>): ExpectStage<T>
Link copied to clipboard
open fun <E : Throwable> expectError(expected: Consumer<E>): ExpectStage<T>
Link copied to clipboard
open fun <E : Throwable> expectErrorType(expected: Class<E>): ExpectStage<T>
Link copied to clipboard

expectCommandCount(0)

Link copied to clipboard
Link copied to clipboard
abstract fun verify()

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