我需要添加什么罐子pom.xml
才能让 PowerMock 与 Mockito 一起工作?我有以下依赖项:
<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>
但是当我@PrepareForTest
在类级别添加注释时,Eclipse 找不到它,但它可以找到PowerMockito
. 我错过了什么罐子?