Mockito error in Spring Boot tests after migrating to JDK 11

前端 未结 1 1983
遇见更好的自我
遇见更好的自我 2020-12-17 09:18

I have just migrated to JDK 11 in order to use the latest Java LTS version. If I change the execution JRE in Eclipse from 10 to 11 (and only then), when I try to run my test

相关标签:
1条回答
  • 2020-12-17 09:27

    Was the same problem. Add Mockito 2.22.0 to dependencies. Everything seems to work.

    compile group: 'org.mockito', name: 'mockito-core', version: '2.22.0'
    
    0 讨论(0)
提交回复
热议问题