Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation not correct for running powermock with mockito1 #1019

Open
debraj-manna opened this issue Nov 9, 2019 · 1 comment
Open

Documentation not correct for running powermock with mockito1 #1019

debraj-manna opened this issue Nov 9, 2019 · 1 comment

Comments

@debraj-manna
Copy link

debraj-manna commented Nov 9, 2019

The documentation for Maven setup for powermockito with Mockito1 shows the dependency as below-

<properties>
    <powermock.version>2.0.2</powermock.version>
</properties>
<dependencies>
   <dependency>
      <groupId>org.powermock</groupId>
      <artifactId>powermock-module-junit4</artifactId>
      <version>${powermock.version}</version>
      <scope>test</scope>
   </dependency>
   <dependency>
      <groupId>org.powermock</groupId>
      <artifactId>powermock-api-mockito</artifactId>
      <version>${powermock.version}</version>
      <scope>test</scope>
   </dependency>
</dependencies>

But there is no powermock-api-mockito for 2.0.2.

@connellrobert
Copy link

This still needs to be changed. documentation is accurate under the supported versions further in the mockito support docs here:
https://github.com/powermock/powermock/wiki/Mockito#supported-versions
So 2.0.2 needs to be changed to 1.7.4 for mockito1. at the top of the docs where you can find the pom configuration, it is noted that powermock2 does not support mockito1. Please change this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants