Stub

A Stub is a class that provides a BaseAnswer for a set of parametersSpec.Values

Inheritors

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
abstract val matchers: M

Functions

Link copied to clipboard
fun doAnswer(answer: A)

Sets the answer for this stub to a given answer.

Link copied to clipboard
fun doExecute(action: (V) -> R)

Sets the answer to execute a given code block.

Link copied to clipboard
fun doReturn(value: R)

Sets the answer to return a given value.

Link copied to clipboard
fun doThrow(throwable: Throwable)

Sets the answer to throw a given Throwable