Mockito Essentials
| By: | Sujoy Acharya |
| Publisher: | Packt Publishing |
| Print ISBN: | 9781783983605 |
| eText ISBN: | 9781783983612 |
| Edition: | 1 |
| Copyright: | 2014 |
| Format: | Reflowable |
Lifetime - $23.99
eBook Features
Instant Access
Purchase and read your book immediately
Read Offline
Access your eTextbook anytime and anywhere
Study Tools
Built-in study tools like highlights and more
Read Aloud
Listen and follow along as Bookshelf reads to you
Details
Table of Contents
Book Description
This book is ideal for developers who have some experience in Java application development as well as some basic knowledge of test doubles and JUnit testing. This book also introduces you to the fundamentals of JUnit testing, test doubles, refactoring legacy code, and writing JUnit tests for GWT and web services.What you will learn
- Explore test doubles and work with dummy, spy, fake, stub, and mock objects
- Uncover the Mockito architecture and build a custom mocking framework
- Mock, stub, and spy external code dependencies using Mockito
- Practice Behaviordriven Development (BDD) with Mockito
- Make legacy code testable by mocking and spying dependencies
- Mock GWT and web service dependencies using Mockito
- Discover argument captors, inline stubbing, and resetting mock objects