Review: Instant Mock Testing with PowerMock

Instant Mock Testing with PowerMock
Instant Mock Testing with PowerMock by Deep Shah
My rating: 4 of 5 stars

PowerMock is a mocking library which extends EasyMocks and Mockito traditional mocking libraries that cannot access to all code, like static and private methods.
The book has a pragmatic approach while describing PowerMock features, with a rich set of examples.
All examples are based on jUnit and Mockito but PowerMock also supports TestNG and EasyMocks.
First part of the book describes the installation steps with Maven, Idea and Eclipse.
The rest of the book is dedicated to static methods, final classes, final methods, constructors and private methods mocking.
Examples are valid and well explained.
Suggested to everybody involved in testing, especially on legacy code testing.
Publisher info can be found here

View all my reviews

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s