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

最新文章

  1. 【MySQL】mysql分页调用
  2. LeetCode Counting Bits
  3. .NET相关操作其他文件的小程序(系列文章)
  4. Chrome浏览器M53更新后超链接的dispatchEvent(evt)方法无法触发文件下载
  5. img标签使用默认图片的一种方式
  6. 解决maven编译spark1.5报错问题
  7. Iaas-cloudstack概念
  8. spring_150803_component
  9. [Swust OJ 188]--异面空间(读懂题意很重要)
  10. mongoDB5--mongoDB增删改查
  11. Redis系列三(redis配置文件分析)
  12. golang中的reflect包用法
  13. 嵌入式linux------SDL移植(am335x下显示yuv420)
  14. WinDbg调试 C# dmp
  15. C 语言经典例子
  16. Codeforces 980D Perfect Groups 计数
  17. TF常用知识
  18. 2019.02.21 bzoj2739: 最远点(决策单调性+分治)
  19. Spring @Configuration 和 @Bean 注解
  20. 罗技 M558 鼠标维修记录

热门文章

  1. C#图片水印类
  2. CF1227D Optimal Subsequences
  3. 十篇TED点击率最高演讲,带你重新认识大数据与人工智能
  4. php面向对象(文件操作)
  5. Linux DHCP 服务器配置与管理
  6. Spark直接读入fastq格式的数据
  7. Spring初解
  8. 【转帖】2011-2018年中国IPv6地址数量及国际出口带宽数走势情况[图]
  9. (二)spring初次遇见shiro
  10. C之typedef应用