Manuel Lorenzo
07/18/2019, 12:00 PMtestDevelopDebugUnitTest
gradle task, I started to get random errors such as
Missing method call for verify(mock) here:
-> at com.nhaarman.mockitokotlin2.VerificationKt.verify(Verification.kt:72)
Example of correct verification:
verify(mock).doSomething()
Also, this error might show up because you verify either of: final/private/equals()/hashCode() methods.
Those methods *cannot* be stubbed/verified.
Mocking methods declared on non-public parent classes is not supported.
this only happen when the gradle task is executed, and if I ignore that test, then another one fails 🤔 I didn’t modify anything there, not in the injection or anything related.I tried changing the mockito-kotlin version, the mockito-core version, upgrading gradle, upgrading the gradle android plugin..tddmonkey
07/18/2019, 12:02 PMManuel Lorenzo
07/18/2019, 12:04 PMManuel Lorenzo
07/18/2019, 12:04 PMtddmonkey
07/18/2019, 12:05 PMManuel Lorenzo
07/18/2019, 12:07 PMorg.gradle.jvmargs=-Xmx4608M
android.enableD8=true
android.useAndroidX=true
android.enableJetifier=true
org.gradle.parallel=false
kotlin.parallel.tasks.in.project=true
kapt.use.worker.api=true
android.enableUnitTestBinaryResources=true
kapt.incremental.apt=true
Manuel Lorenzo
07/18/2019, 12:07 PMorg.gradle.parallel=false
but still failingtddmonkey
07/18/2019, 12:36 PMManuel Lorenzo
07/18/2019, 12:43 PM