doThrow

fun doThrow(throwable: Throwable)

Sets the answer to throw a given Throwable

Parameters

throwable

The Throwable to throw as an answer to the stub being called.