Registry / testing / powermock-mockito-release-full

powermock-mockito-release-full

JSON →
library1.6.4javamavenunverified

A single jar containing all PowerMock core and module binaries for mocking static methods, constructors, and final classes with Mockito.

<dependency> <groupId>org.powermock</groupId> <artifactId>powermock-mockito-release-full</artifactId> <version>1.6.4</version> </dependency>
INSTALL
IMPORT
SIG · POWERMOCK-MOCKITO-
P
powermock-mockito-release-full
testingjavav1.6.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

PowerMockito
org.powermock.api.mockito.PowerMockito

Demonstrates mocking a static method using PowerMockito.

import org.powermock.api.mockito.PowerMockito; import static org.mockito.Mockito.when; public class Example { public void testMockStatic() { PowerMockito.mockStatic(System.class); when(System.getProperty("key")).thenReturn("value"); } }
Debug
Known issues
breakingPowerMock requires specific JUnit runner or TestNG listener setup; missing configuration causes tests to fail silently.
fix
Add @RunWith(PowerMockRunner.class) for JUnit 4 or configure TestNG listener.
affects: >=1.0.0
Upgrade
Version history
1.6.4latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
powermock-mockito-release-full — mvn dependency:get powermock-mockito-release-full · libregistry