This Java framework enables unit testing of code that is typically deemed untestable.
As anyone who has written unit tests before knows, it can be a difficult process that often requires sacrificing good design principles in order to achieve testability. While testability is important, it doesn't always correspond with good design.
Existing frameworks can place a number of limitations on the testing process. For example, final classes and methods aren't usable, private methods may need to be protected or moved to a collaborator even when it's not necessary, and static methods should be avoided completely.
Thankfully, with PowerMock, you don't have to make these types of compromises. It offers a range of features that help you perform comprehensive unit testing with ease, without sacrificing good design practices. And with its Apache License 2.0 distribution, you can use PowerMock with confidence.
Version 1.2: N/A