为了账号安全,请及时绑定邮箱和手机立即绑定

Could not initialize plugin: interface org.mockito.plugins.MockMaker

启动Could not initialize plugin: interface org.mockito.plugins.MockMaker报错

正在回答

1 回答

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>


0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

Could not initialize plugin: interface org.mockito.plugins.MockMaker

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信