PowerMock API for Mockito 2.+.
<dependency>
<groupId>org.powermock</groupId>
<artifactId>powermock-api-mockito2</artifactId>
<version>2.0.9</version>
</dependency>No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Mock static methods using PowerMockito.
Add @RunWith(PowerMockRunner.class) or @Rule PowerMockRule.
No dependency data recorded yet.