The Frontier logo The Frontier logo
06:19
Brian Gardner

Mock vs Spy

Brian Gardner | Mar 26, 2018

What is the difference between Mocks and Spies in Android?

There are a wide variety of test doubles you can use to make testing easier. In this video we will discuss mocks and spies, what their differences are and when you would use each of them.

Prerequisites:

Viewers should be familiar with running unit tests and mock objects


Supported Links:

Building Effective Unit Tests: Android Developers Guide