Java framework that allows you to unit test code normally regarded as untestable
Version: 1.2PowerMock is a free and open source Java framework that will help you perform unit code testing.
Operating System: Mac OS X
Writing unit tests can be hard and sometimes good design has to be sacrificed for the sole purpose of testability. Often testability corresponds to good design, but this is not always the case.
For example final classes and methods cannot be used, private methods sometimes need to be protected or unnecessarily moved to a collaborator, static methods should be avoided completely and so on simply because of the limitations of existing frameworks.
NOTE: PowerMock is licensed and distributed under the terms of the Apache License 2.0.