mockito-kotlin
mockito-kotlin copied to clipboard
"Mockito cannot mock this class" after upgrading from Kotlin 1.6.21 to 1.7.0
trafficstars
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
Can you please provide a full stacktrace of the exception?
I expect not the same, but there is an mockito issue at 1.7.20+ https://github.com/mockito/mockito/issues/2795