Registry / testing / powermock-module-junit4

powermock-module-junit4

JSON →
library2.0.9javamavenunverified

PowerMock support module for JUnit 4.x, enabling mocking of static methods, constructors, and final classes.

<dependency> <groupId>org.powermock</groupId> <artifactId>powermock-module-junit4</artifactId> <version>2.0.9</version> </dependency>
INSTALL
IMPORT
SIG · POWERMOCK-MODULE-J
P
powermock-module-junit4
testingjavav2.0.9
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.

PowerMockRunner
org.powermock.modules.junit4.PowerMockRunner

Minimal JUnit 4 test using PowerMockRunner.

import org.powermock.modules.junit4.PowerMockRunner; import org.junit.runner.RunWith; @RunWith(PowerMockRunner.class) public class MyTest { // test methods }
Debug
Known issues
breakingPowerMock is incompatible with newer JUnit 5 and may conflict with other mocking frameworks like Mockito 4+.
fix
Consider migrating to Mockito's inline mock maker or JUnit 5's extension model.
affects: >=2.0.0
Upgrade
Version history
2.0.9latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
powermock-module-junit4 — mvn dependency:get powermock-module-junit4 · libregistry