doReturn

fun doReturn(value: R)

Sets the answer to return a given value.

Parameters

value

the result to return as an answer to the stub being called.