Kotlin breaks mockito. I got exception `org.mockit...
# announcements
n
Kotlin breaks mockito. I got exception
org.mockito.exceptions.misusing.UnfinishedStubbingException
. Code is:
Copy code
doReturn(true).`when`(tracker).isEnabled
Generated code is:
Copy code
Stubber doReturn = Mockito.doReturn(Boolean.valueOf(true));
        KahunaTracker kahunaTracker2 = this.tracker;
        if (kahunaTracker2 == null) {
            Intrinsics.throwUninitializedPropertyAccessException("tracker");
        }
        ((KahunaTracker) doReturn.when(kahunaTracker2)).isEnabled();
        doReturn = Mockito.doReturn(Companion.access$getDATE_NOW$p(Companion));