This book is an introduction to the Mockito mocking library for Java. You should be familiar with Java and JUnit before reading, but this book will handle it from there. It covers:
-
Creating simple mocks
-
Strategies for refactoring legacy code for mocking
-
Advanced Mockito tools like Argument Captors and Answers
Copyright © 2017 Robert Richter.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License".