欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

Mockito java.lang.NoSuchMeThodError 博客分类: powermock powermock

程序员文章站 2024-02-15 08:51:40
...
异常情况:
 
org.mocktio.internal.createion.instance.InstiatorProvider.getInstantiator(Long/mockito/mock/MockCreationSettings;)Lorg/mockito.internal/creation/instance/Instantiator
 
这种情况是mocktio jar 和powermock jar包冲突 ,所以建议把mocktio pom去掉
 
<dependency>
<grouId>org.mockito</grouId>
<artifacId>mocktio-all</artifacId>
<scope>test</scope>
 
</dependency>
相关标签: powermock