Strikt.mockk

package strikt.mockk

Fields

Name Description
val captured: Assertion.Builder<T>

Maps this assertion to an assertion whose subject is the captured value of the CapturingSlot.

Methods

isCaptured

fun <T : Any> Assertion.Builder><CapturingSlot<T>>.isCaptured(): Assertion.Builder><CapturingSlot<T>>

Asserts that the subject has captured a value.

Receiver

Name Description
Assertion.Builder><CapturingSlot<T>>

ReturnValue

Name Description
Assertion.Builder><CapturingSlot<T>>

withCaptured

fun <T : Any> Assertion.Builder><CapturingSlot<T>>.withCaptured(block: Assertion.Builder<T>.()->Unit): Assertion.Builder><CapturingSlot<T>>

Runs a group of assertions on the captured value.

Receiver

Name Description
Assertion.Builder><CapturingSlot<T>>

Parameters

Name Description
block: Assertion.Builder<T>.()->Unit

a closure that can perform multiple assertions that will all be evaluated regardless of whether preceding ones pass or fail.

ReturnValue

Name Description
Assertion.Builder><CapturingSlot<T>>

this builder, to facilitate chaining.