Closed jshvarts closed 5 years ago
Closing the ticket. I realized now that all inline (not just reified) functions are not mockable.
@jshvarts what about new mockito release? Ideally all inline function are translated as final functions in java notation. I am not sure how they become in bytecode but maybe this can help you https://www.baeldung.com/mockito-final
Hi Niek,
Thanks again for the great library.
I am wondering if mocking functions with
reified
is supported in mockito-kotin.I have this function in
class MyClass
:And I try to mock it with:
Which results in:
Mocking another function that does not use
reified
on the same class works fine.I am using mockito-kotlin:2.1.0
Thanks!