This series of books are meant to be a quick introduction with enough information to get you going with a project. In that respect this book does a very good job of introducing the reader to PowerMock – specifically the Mockito variety (nothing about Easymock covered).
Based around a simple, and probably familiar, set of examples upon which the book builds the author takes the user from very simple usage up to more advanced use cases.
If you want to learn about PowerMock’s internals or how it works you will be disappointed, this book takes a pragmatic approach.
A couple of areas where I would have liked to have seen improvement:
– In the introduction the author introduces MockSettings (such as verbose logging) but never discusses them further or shows what some of the most basic options do. I felt this was a big omission
– There is no coverage of alternative libraries (if there are any) and why a developer would use PowerMock vs others
By the end of the book I felt that I could integrate PowerMock and start making good use of it immediately, and in that respect the book does exactly what it sets out to do.
For more information please see: http://bit.ly/181GmFv
Liked this post? Follow this blog to get more.
Leave a Reply
You must be logged in to post a comment.