java.lang.AbstractMethodError: org.powermock.api.mockito.internal.mockmaker.PowerMockMaker.isTypeMockable
2024-08-27 04:32:22
The following github links helped in fixing the issue up, all I had to do was to upgrade the powermock-api version to 2.0.0-beta.5 to make it work properly with mockito2.
https://github.com/mockito/mockito/issues/1207
https://github.com/powermock/powermock/wiki/Mockito#introduction
https://github.com/mockito/mockito/issues/292
<dependency>
<groupId>org.powermock</groupId>
<artifactId>powermock-core</artifactId>
<version>2.0.0-RC.4</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.powermock</groupId>
<artifactId>powermock-module-junit4</artifactId>
<version>2.0.0-beta.5</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.powermock</groupId>
<artifactId>powermock-api-mockito2</artifactId>
<version>2.0.0-beta.5</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>cglib</groupId>
<artifactId>cglib</artifactId>
<version>3.2.9</version>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-inline</artifactId>
<version>2.15.0</version>
</dependency>
answered Jan 5 at 6:23
最新文章
- 【MySQL】mysql分页调用
- LeetCode Counting Bits
- .NET相关操作其他文件的小程序(系列文章)
- Chrome浏览器M53更新后超链接的dispatchEvent(evt)方法无法触发文件下载
- img标签使用默认图片的一种方式
- 解决maven编译spark1.5报错问题
- Iaas-cloudstack概念
- spring_150803_component
- [Swust OJ 188]--异面空间(读懂题意很重要)
- mongoDB5--mongoDB增删改查
- Redis系列三(redis配置文件分析)
- golang中的reflect包用法
- 嵌入式linux------SDL移植(am335x下显示yuv420)
- WinDbg调试 C# dmp
- C 语言经典例子
- Codeforces 980D Perfect Groups 计数
- TF常用知识
- 2019.02.21 bzoj2739: 最远点(决策单调性+分治)
- Spring @Configuration 和 @Bean 注解
- 罗技 M558 鼠标维修记录