- PowerMock - Home
- PowerMock - Overview
- PowerMock - Environment Setup
- PowerMock - First Application
- PowerMock - Mock Static
- PowerMock - Mock Private
- PowerMock - Mock Final
- PowerMock - Mock New
- PowerMock - Bypass Encapsulation
- PowerMock - Supress Behavior
- PowerMock Useful Resources
- PowerMock - Quick Guide
- PowerMock - Useful Resources
- PowerMock - Discussion
PowerMock Tutorial
PowerMock is an extension to Mockito/EasyMock mocking frameworks. It is a JAVA-based library that is used for effective unit testing of JAVA applications. PowerMock is used to mock untestable code such as private/final methods so that complete code can be used in unit testing.
This tutorial should help you learn how to create unit tests with PowerMock as well as how to use its APIs in a simple and intuitive way.
Audience
This tutorial is meant for Java developers, from novice to expert level, who would like to improve the quality of their software through unit testing and test-driven development.
After completing this tutorial, you should gain sufficient exposure to Mockito from where you can take yourself to next levels of expertise.
Prerequisites
Readers must have a working knowledge of JAVA programming language in order to make the best of this tutorial. Knowledge of JUnit is an added advantage.