CallArgs

class CallArgs(val args: List<Any?>)

Contains arguments passed to mocked method. If method has extension receiver it is passed at the start of this list.

It is possible to apply destructuring declaration with convenient cast using generic component1, component2 etc.

ever { dependency.foo(1) } calls { (i: Int) ->  }

Constructors

Link copied to clipboard
constructor(args: List<Any?>)

Properties

Link copied to clipboard
val args: List<Any?>

Functions

Link copied to clipboard
inline fun <T> arg(index: Int): T

Returns argument with index from args and expects that it is an instance of type T.

Link copied to clipboard
inline operator fun <T> component1(): T
Link copied to clipboard
inline operator fun <T> component2(): T
Link copied to clipboard
inline operator fun <T> component3(): T
Link copied to clipboard
inline operator fun <T> component4(): T
Link copied to clipboard
inline operator fun <T> component5(): T
Link copied to clipboard
inline operator fun <T> component6(): T
Link copied to clipboard
inline operator fun <T> component7(): T