mockito-kotlin icon indicating copy to clipboard operation
mockito-kotlin copied to clipboard

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

Open breucode opened this issue 3 years ago • 2 comments
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

breucode avatar Jul 02 '22 15:07 breucode

Can you please provide a full stacktrace of the exception?

TimvdLippe avatar Jul 02 '22 17:07 TimvdLippe

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

childnode avatar Nov 22 '22 04:11 childnode