我应该使用哪些 Maven 工件来导入 PowerMock?
我需要添加哪些jar才能让PowerMock与Mockito一起工作?我有以下依赖关系:pom.xml
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-all</artifactId>
<version>1.9.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.powermock</groupId>
<artifactId>powermock-api-mockito</artifactId>
<version>1.4.11</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.powermock</groupId>
<artifactId>powermock-api-support</artifactId>
<version>1.4.11</version>
<scope>test</scope>
</dependency>
但是当我在类级别添加注释时,Eclipse找不到它,但它可以找到.我错过了什么罐子?@PrepareForTest
PowerMockito