Basically, what we see here is that Mockito 2 now ...
# test
a
Basically, what we see here is that Mockito 2 now intercepts/mocks/etc
final
methods and since we have property
state
, Kotlin compiler adds
setState()
method which previously was not tracked by Mockito 1 but now is trackable with Mockito 2 and it fails our verification… It’s not critical for our test code base but can be hard to debug and understand, so be careful!