getter

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

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

Since

v19.3.0, v18.13.0


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