How can I mock Class<Out T>
? I get therer error : Mockito match any class argument when I try to mock and use it in a
whenever(mockClass.method(mockClass)).thenReturns(...)
any(Class::class)
or any(Class::class.java)
didn't help either.
How can I mock Class<Out T>
? I get therer error : Mockito match any class argument when I try to mock and use it in a
whenever(mockClass.method(mockClass)).thenReturns(...)
any(Class::class)
or any(Class::class.java)
didn't help either.