fun <T> any(): T
Mockito matcher that matches anything, including nulls and varargs. |
|
fun <T> eq(value: T): T
Mockito matcher that matches if the argument is the same as the provided value. |
|
fun <T : Throwable> expectException(clazz: KClass<T>, block: () -> Unit): Unit
Expect block to throw an exception. Otherwise fail the test (junit). |
|
fun <T : Any> mock(): T
Dynamically create a mock object. This method is helpful when creating mocks of classes using generics. |