Module { it!!.bind(T::class.java).toInstance(implementation) }
inline fun <reified T : Any> bindMock(): Module =
- Module { it!!.bind(T::class.java).toInstance(mock<T>()) }
+ Module { it!!.bind(T::class.java).toInstance(mock()) }
inline fun <reified T: Any?> whenever(methodCall: T) = Mockito.`when`(methodCall)!!
-inline fun <reified T : Any> OngoingStubbing<T>.thenReturnMock(): OngoingStubbing<T> = this.thenReturn(mock<T>())
+inline fun <reified T : Any> OngoingStubbing<T>.thenReturnMock(): OngoingStubbing<T> = this.thenReturn(mock())
operator fun <T> InvocationOnMock.get(index: Int): T = getArgument(index)