Open marcosalis opened 6 years ago
I've just realised my example test also fails on normal unit tests, even with the /resources/mockito-extensions/org.mockito.plugins.MockMaker
configuration with mock-maker-inline
.
Any updates on this?
I'm also hitting this issue. For big data classes it's a pain to have to mock everything manually
This is still happening with Mockito 2.18.3
and kotlin
/ kotlin-allopen
1.2.41
Mockito 2.15.0 supportTest 1.0.1 Kotlin 1.2.30
I'm trying to mock (using
RETURNS_DEEP_STUBS
) some Kotlin data and normal classes in a library module that uses thekotlin-allopen
compiler plugin in an Android instrumentation test. Standard mocking works fine, but no deep stubs are created, i.e. a String getter for aval
constructor parameter still returns null. Is this a known limitation or should it work?Code example: