Overview
Mockito Essentials provides an accessible and thorough introduction to unit testing and mocking in Java using the popular Mockito library. By following this guide, developers new to Mockito will get hands-on experience and actionable techniques for more efficient and maintainable unit testing.
What this Book will help me do
- Understand and apply the principles of unit testing in software development.
- Master the use of Mockito's features for effective mocking and spying.
- Learn to refactor legacy codebases to be testable through mock dependencies.
- Discover techniques for testing persistency layers through mock objects.
- Get acquainted with Behavior-Driven Development (BDD) with Mockito.
Author(s)
None Acharya, a seasoned Java developer and software engineer, leverages their extensive experience to provide an insightful guide to the Mockito framework. Known for their clear and concise style, they aim to unravel technical complexities and make advanced topics accessible for learners of all levels.
Who is it for?
This book is suited for Java developers who wish to deepen their understanding of automated unit testing. If you have some prior exposure to Java and JUnit, this book will help bridge the gap to mastering tests using Mockito. It's ideal for professionals looking to improve their code quality and maintainability. It also suits students or hobbyists interested in expanding their Java toolkit.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access