mockMany

fun <T1 : Any, T2 : Any> mockMany(mode: MockMode? = null, block: MokkeryMockConfigurer.Block<MockMany2<T1, T2>> = { }): MockMany2<T1, T2>(source)

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

Parameters

mode

determines the default behavior when no answer is provided. If not provided, default mode is used.

block

configures the mock right after its creation. It allows defining answers and adjusting the mock context with MokkeryMockConfigurer.


fun <T1 : Any, T2 : Any, T3 : Any> mockMany(mode: MockMode? = null, block: MokkeryMockConfigurer.Block<MockMany3<T1, T2, T3>> = { }): MockMany3<T1, T2, T3>(source)

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

Parameters

mode

determines the default behavior when no answer is provided. If not provided, default mode is used.

block

configures the mock right after its creation. It allows defining answers and adjusting the mock context with MokkeryMockConfigurer.


fun <T1 : Any, T2 : Any, T3 : Any, T4 : Any> mockMany(mode: MockMode? = null, block: MokkeryMockConfigurer.Block<MockMany4<T1, T2, T3, T4>> = { }): MockMany4<T1, T2, T3, T4>(source)

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

Parameters

mode

determines the default behavior when no answer is provided. If not provided, default mode is used.

block

configures the mock right after its creation. It allows defining answers and adjusting the mock context with MokkeryMockConfigurer.


fun <T1 : Any, T2 : Any, T3 : Any, T4 : Any, T5 : Any> mockMany(mode: MockMode? = null, block: MokkeryMockConfigurer.Block<MockMany5<T1, T2, T3, T4, T5>> = { }): MockMany5<T1, T2, T3, T4, T5>(source)

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

Parameters

mode

determines the default behavior when no answer is provided. If not provided, default mode is used.

block

configures the mock right after its creation. It allows defining answers and adjusting the mock context with MokkeryMockConfigurer.


Provides mock implementation of T1 and T2. It is a child of given MokkerySuiteScope.

Types restrictions:

  • Each type has to satisfy type restriction from mock.

  • Only one class is allowed

  • No type duplicates

Parameters

mode

determines the default behavior when no answer is provided. If not provided, default mode is used.

block

configures the mock right after its creation


Provides mock implementation of T1, T2 and T3. It is a child of given MokkerySuiteScope.

Types restrictions:

  • Each type has to satisfy type restriction from mock.

  • Only one class is allowed

  • No type duplicates

Parameters

mode

determines the default behavior when no answer is provided. If not provided, default mode is used.

block

configures the mock right after its creation


Provides mock implementation of T1, T2, T3 and T4. It is a child of given MokkerySuiteScope.

Types restrictions:

  • Each type has to satisfy type restriction from mock.

  • Only one class is allowed

  • No type duplicates

Parameters

mode

determines the default behavior when no answer is provided. If not provided, default mode is used.

block

configures the mock right after its creation


fun <T1 : Any, T2 : Any, T3 : Any, T4 : Any, T5 : Any> MokkerySuiteScope.mockMany(mode: MockMode? = null, block: MokkeryMockConfigurer.Block<MockMany5<T1, T2, T3, T4, T5>> = { }): MockMany5<T1, T2, T3, T4, T5>(source)

Provides mock implementation of T1, T2, T3, T4 and T5. It is a child of given MokkerySuiteScope.

Types restrictions:

  • Each type has to satisfy type restriction from mock.

  • Only one class is allowed

  • No type duplicates

Parameters

mode

determines the default behavior when no answer is provided. If not provided, default mode is used.

block

configures the mock right after its creation