mockito / mockito-kotlin

Using Mockito with Kotlin
MIT License
3.09k stars 198 forks source link

"Mockito cannot mock this class" after upgrading from Kotlin 1.6.21 to 1.7.0 #460

Open breucode opened 2 years ago

breucode commented 2 years ago

After upgrading from Kotlin 1.6.21 to 1.7.0 several tests failed in my project.

Error log from 1.7.0: https://github.com/breucode/imisu/runs/7162625396

Successful run in 1.6.21: https://github.com/breucode/imisu/runs/7162750526

The failing tests are located here: https://github.com/breucode/imisu/blob/master/src/test/kotlin/de/breuco/imisu/api/routes/ServicesTest.kt

TimvdLippe commented 2 years ago

Can you please provide a full stacktrace of the exception?

childnode commented 1 year ago

I expect not the same, but there is an mockito issue at 1.7.20+ https://github.com/mockito/mockito/issues/2795