Sign in Go Pro


Unit Testing with Mockito

This lesson is for PRO members.

Upgrade today to get access to all the PRO lessons.

Unlock this lesson

Up next



Unit testing is critical to developing high quality Android applications. In this lesson learn how to make sure you have tested the various paths of your asynchronous Retrofit calls using Mockito. In this lesson you will learn: How to configure Mocks and ArugmentCaptors with Mockito How to set up your unit tests for Retrofit callbacks How to use ArgumentCaptor to call methods on anonymous classes



Lessons in RetroFit2