VerificationBuilder

Fluent builder for stub-verification assertions.

Returned by StubHandle.verifyCalled. Every method is terminal — it asserts immediately and returns the StubHandle for chaining.

See also

Functions

Link copied to clipboard
fun atLeast(times: Int): StubHandle

Asserts the stub was called at least times times.

Link copied to clipboard
fun atMost(times: Int): StubHandle

Asserts the stub was called at most times times.

Link copied to clipboard
fun exactly(times: Int): StubHandle

Asserts the stub was called exactly times times.

Link copied to clipboard

Asserts the stub was never called (exactly 0 times).