OfType

class OfType(val type: KClass<*>, val args: List<Any?>? = null) : SuperCall

Call for a super method from type with given args. If interface is mocked, default implementation is called.

If args is null, args passed to mock (FunctionScope.args) are used.

It is recommended to use superOf and superWith instead.

Constructors

Link copied to clipboard
constructor(type: KClass<*>, args: List<Any?>? = null)

Properties

Link copied to clipboard
val args: List<Any?>? = null
Link copied to clipboard
val type: KClass<*>