O'Reilly logo

Instant Mock Testing with PowerMock by Deep Shah

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Getting and installing PowerMock (Simple)

This recipe will describe the steps for setting up PowerMock in two major Integrated Development Environments (IDEs): IntelliJ IDEA (see http://www.jetbrains.com/idea/) and Eclipse (see http://www.eclipse.org/).

Getting ready

For setting up PowerMock, we will need JDK 6 or the later versions installed on the machine.

The detailed instructions on downloading and installing JDK 6 or a later version can be found at http://www.oracle.com/technetwork/java/javase/downloads/index.html.

Download and install any one of your favourite IDEs from http://www.jetbrains.com/idea/ for IntelliJ IDEA and http://www.eclipse.org/ for Eclipse.

How to do it...

  1. PowerMock is an open source mocking framework that is under active development. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required