Saturday, April 11, 2020

Published "Mock Object Testing with Examples Using Mockito"

I just published my latest e-book, "Mock Object Testing with Examples Using Mockito" in the Kindle Store.


The focus of the book is on testing with mock objects in general, rather than a detailed guide to any specific framework. But I had some requests to rework my previous book, "Mock Object Testing with Examples Using EasyMock", to use Mockito. So here you go!

Description:

Mock objects are a powerful tool for unit testing in complex modern software systems. But mock object testing is also misunderstood by many developers who struggle to use mocks to create elegant, maintainable tests.

Using the popular Mockito framework for Java, this book reveals mock object testing across the entire expect-use-verify cycle. Topics include:
•Dependencies and Testable Design
•Creating a Mock from Scratch
•Nice and Strict Mocks
•Matching
•Setting Expectations
•Mock Method Results
•Verification
•Partial and Class Mocking
•Captures

At the end of the book, readers will have a solid grasp on everything that can be done with mocks and be well-prepared to introduce mock object testing into their own unit tests.


Check it out, leave a review, and let me know what you think!

My new weekend project is a short guide to microservices testing based on some training I gave last year. Stay tuned for more news on that.

No comments: