Mockito is a testing framework that creates external dependencies; this process is called mocking. This book will provide you with the skills you need to successfully build and maintain meaningful unit and integration test cases for Spring Framework code. This book starts with a brief introduction to the Spring Framework, including its components and architecture.
Packed with real-world examples, the book covers how to make Spring code testable and mock container and external dependencies using Mockito. You then get a walkthrough of the steps that will help you in applying Spring 4 Framework features and advanced Spring testing module features in the real world. By the end of the book, you will be a competent software tester with Spring and Mockito.
Working already with Mockito and JUnit in practice, I was looking for a book to "make things more neat". I was hoping to find new insight in this book, but hardly did.
The book presents theory of very little Mockito, some JUnit and excessive Spring, but in depth that I would expect from free online tutorials.
I expected something more pragmatic. It is rather a collection of bullet points and would rather suite as a tutorial published on PPT-slides. Instead of being impressed by the presentation, I constantly asked myself "What problem does it actually solve?".
Good thing, it is short, so you can easily flip through it and you might get ideas to investigate further in other sources. But certainly not a must-read.
Bottom Line No, I would not recommend this to a friend