setter

fun setter(target: Any, methodName: String, options: MockFunctionOptions = definedExternally): Mock<(value: Any?) -> Unit>(source)

This function is syntax sugar for MockTracker.method with options.setter set to true.

Since

v19.3.0, v18.13.0


fun setter(target: Any, methodName: String, implementation: Function<*> = definedExternally, options: MockFunctionOptions = definedExternally): Mock<Function<*>>(source)