Mocking Basics

By Brian Gardner on Mar 19, 2018


Let's learn the basics of using mocking in your tests. Unit testing your classes helps ensure that they work correctly based on controlled inputs but doing the setup can be painful if you have a lot of dependencies.

In this video, we’ll show you how to create mock objects using Mockito to simplify your testing setup and improve the readability of your tests.

Basic knowledge or experience building Android applications is recommended. Viewers should be familiar with running unit tests and mock objects

For the More Curious...

Mock vs. Spy - Part 2
Building Effective Unit Tests
Mockito | GitHub
BNR Guide to Android
Android & Kotlin Courses


No guide available for this screencast. If you need help, start a discussion with the team in the community tab.


Project files are only available for subscribers. Create an account today to access our collection of screencasts, skill packs, and more.