Java – extension API internal error: org powermock. api. extension. reporter. MockingFrameworkReporterFactoryImpl

I tried to write a unit test with powermockrunner, but I received the following error:

I checked all the dependencies. It doesn't matter. Do I need anything else?

Solution

After publishing the question, I found the answer, which seems to be version 1.6 5, which requires additional dependencies, which is described as here

The dependency is powermock API mockito common version 1.6 5, you can add it to POM xml

<dependency>
    <groupId>org.powermock</groupId>
    <artifactId>powermock-api-mockito-common</artifactId>     
    <version>1.6.5</version>
</dependency>

Or download jar

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>