我是靠谱客的博主 悦耳雪碧,这篇文章主要介绍Could not initialize plugin: interface org.mockito.plugins.MockMaker测试时报Could not initialize plugin: interface org.mockito.plugins.MockMaker错误解决,现在分享给大家,希望可以做个参考。
测试时报Could not initialize plugin: interface org.mockito.plugins.MockMaker错误解决
mockito-core.jar现在依赖于:
byte-buddy.jar
byte-buddy-agent.jar
objenesis.jar
pom.xml添加相应依赖包:
<dependency>
<groupId>net.bytebuddy</groupId>
<artifactId>byte-buddy</artifactId>
<version>1.8.21</version>
</dependency>
<dependency>
<groupId>net.bytebuddy</groupId>
<artifactId>byte-buddy-agent</artifactId>
<version>1.8.21</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.objenesis</groupId>
<artifactId>objenesis</artifactId>
<version>2.6</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>2.21.0</version>
<scope>test</scope>
</dependency>
最后
以上就是悦耳雪碧最近收集整理的关于Could not initialize plugin: interface org.mockito.plugins.MockMaker测试时报Could not initialize plugin: interface org.mockito.plugins.MockMaker错误解决的全部内容,更多相关Could内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复