why i am getting org.powermock.api.mockito.expectation.WithOrWithoutExpectedArguments?

眉间皱痕 提交于 2020-04-13 06:49:13

问题


Currently, i am using the following dependency for my project But i am getting org.powermock.api.mockito.expectation.WithOrWithoutExpectedArguments not found

please look on the dependency,

     <properties>
     <java.version>1.8</java.version>
     <powermock.version>1.7.0RC2</powermock.version>
     </properties>
      <dependency>
            <groupId>org.powermock</groupId>
            <artifactId>powermock-core</artifactId>
            <version>${powermock.version}</version>
            <scope>compile</scope>
        </dependency>
        <!-- https://mvnrepository.com/artifact/junit/junit -->
          <dependency>
          <groupId>junit</groupId>
          <artifactId>junit</artifactId>
          <version>4.12</version>
          <scope>compile</scope>
         </dependency>

           <dependency>
            <groupId>org.powermock</groupId>
            <artifactId>powermock-api-mockito</artifactId>
            <version>${powermock.version}</version>
            </dependency>

            <dependency>
            <groupId>org.mockito</groupId>
            <artifactId>mockito-all</artifactId>
           <version>1.9.5</version>
            </dependency>


           <dependency>
            <groupId>org.powermock</groupId>
            <artifactId>powermock-api-support</artifactId>
            <version>${powermock.version}</version>
           </dependency>
        <dependency>
        <groupId>org.powermock</groupId>
         <artifactId>powermock-api-mockito-common</artifactId>     
         <version>1.6.5</version>
         </dependency>


        <!-- https://mvnrepository.com/artifact/org.powermock/powermock-   module-junit4 -->
          <dependency>
          <groupId>org.powermock</groupId>
          <artifactId>powermock-module-junit4</artifactId>
          <version>${powermock.version}</version>
          </dependency>

End the error is during building the project using maven framework.

cannot access    org.powermock.api.mockito.expectation.WithOrWithoutExpectedArguments
 [ERROR] class file for                   org.powermock.api.mockito.expectation.WithOrWithoutExpectedArguments not found

来源:https://stackoverflow.com/questions/43091594/why-i-am-getting-org-powermock-api-mockito-expectation-withorwithoutexpectedargu

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!