Use this tag for questions about PowerMock, a Java library for creating mock objects for classes and methods. Questions about PowerMock's extension for Mockito should be tagged [powermockito] instead.
PowerMock is a Java unit testing library that takes mock creation further than is possible using Mockito and EasyMock and facilitates mock creation and behaviour in areas that they deem un-testable.
Facilities available from PowerMock include:
- mocking static, private and final methods
- partial mocking, and
- mocking construction of new objects
The project is open source on Apache License 2.0 and is available in Git Hub.