Bug#1099353: RFP: powermock -- Java framework for unit tests that extends EasyMock and Mockito
Thomas Uhle
thomas.uhle at mailbox.tu-dresden.de
Sun Mar 2 20:15:31 GMT 2025
Package: wnpp
Severity: wishlist
Control: block 1099349 by -1
X-Debbugs-CC: Debian Java Maintainers <pkg-java-maintainers at lists.alioth.debian.org>
* Package name : powermock
Version : 2.0.9
Upstream Author : Johan Haleby, Jan Kronquist
* URL or Web page : https://powermock.github.io/
* License : Apache 2.0
Description : Java framework for unit tests that extends EasyMock and Mockito
PowerMock is a framework that extends other mock libraries such as
EasyMock with more powerful capabilities. PowerMock uses a custom
classloader and bytecode manipulation to enable mocking of static
methods, constructors, final classes and methods, private methods,
removal of static initializers and more. By using a custom classloader
no changes need to be done to the IDE or continuous integration servers
which simplifies adoption. Developers familiar with the supported mock
frameworks will find PowerMock easy to use, since the entire expectation
API is the same, both for static methods and constructors. PowerMock
aims to extend the existing APIs with a small number of methods and
annotations to enable the extra features. Currently PowerMock supports
EasyMock and Mockito. PowerMock can be used to test otherwise untestable
code and also to achieve a cleaner separation between test and production
code.
PowerMock is needed to build Maven Surefire 3.0.0 (see #1099349 [1]).
[1] https://bugs.debian.org/1099349
More information about the pkg-java-maintainers
mailing list