How to Install libpowermock-java in Ubuntu 18.04



Install libpowermock-java by entering the following commands in the terminal:

sudo apt update
sudo apt install libpowermock-java

Description:

PowerMock testing framework for Java

PowerMock allows you to unit test code normally regarded as untestable. For instance it is possible to mock static methods, remove static initializers, allow mocking without dependency injection and more. PowerMock works by bytecode manipulation. PowerMock also contain some utilities that gives you easier access to an objects internal state. PowerMock can be used to test otherwise untestable code and also to achieve a cleaner separation between test and production code.

Homepage: http://www.powermock.org

Version: 1.6.6-1

Section: universe/java