I recommend nhaarman/mockito-kotlin: Using Mockito with Kotlin It solves this through an inline function with a reified type parameter: inline fun.
確定! 回上一頁