mockMany

inline fun <T1 : Any, T2 : Any> mockMany(mode: MockMode = MokkeryCompilerDefaults.mockMode, block: MockMany2<T1, T2>.() -> Unit = { }): MockMany2<T1, T2>

Provides mock implementation of T1 and T2.

Types restrictions:

  • Each type has to satisfy type restriction from mock.

  • Only one class is allowed

  • No type duplicates


inline fun <T1 : Any, T2 : Any, T3 : Any> mockMany(mode: MockMode = MokkeryCompilerDefaults.mockMode, block: MockMany3<T1, T2, T3>.() -> Unit = { }): MockMany3<T1, T2, T3>

Provides mock implementation of T1, T2 and T3.

Types restrictions:

  • Each type has to satisfy type restriction from mock.

  • Only one class is allowed

  • No type duplicates


inline fun <T1 : Any, T2 : Any, T3 : Any, T4 : Any> mockMany(mode: MockMode = MokkeryCompilerDefaults.mockMode, block: MockMany4<T1, T2, T3, T4>.() -> Unit = { }): MockMany4<T1, T2, T3, T4>

Provides mock implementation of T1, T2, T3 and T4.

Types restrictions:

  • Each type has to satisfy type restriction from mock.

  • Only one class is allowed

  • No type duplicates


inline fun <T1 : Any, T2 : Any, T3 : Any, T4 : Any, T5 : Any> mockMany(mode: MockMode = MokkeryCompilerDefaults.mockMode, block: MockMany5<T1, T2, T3, T4, T5>.() -> Unit = { }): MockMany5<T1, T2, T3, T4, T5>

Provides mock implementation of T1, T2, T3, T4 and T5.

Types restrictions:

  • Each type has to satisfy type restriction from mock.

  • Only one class is allowed

  • No type duplicates