首页 > 其他分享 >mockito

mockito

时间:2023-10-22 12:44:06浏览次数:41  
标签:plugin mockito 报错 plugins initialize org

 

项目中引入 mockito,报错:

java.lang.IllegalStateException: Could not initialize plugin: interface org.mockito.plugins.MockMaker (alternate: null)

解决:

https://howtodoinjava.com//plugin-mockmaker-error/

 

<!-- https://mvnrepository.com/artifact/org.mockito/mockito-core -->
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>4.5.1</version>
<scope>test</scope>
</dependency>

依赖

<!-- https://mvnrepository.com/artifact/net.bytebuddy/byte-buddy -->
<dependency>
<groupId>net.bytebuddy</groupId>
<artifactId>byte-buddy</artifactId>
<version>1.12.9</version>
</dependency>

标签:plugin,mockito,报错,plugins,initialize,org
From: https://www.cnblogs.com/parkdifferent/p/17780277.html

相关文章