Sign in Go Pro


A Guide to Writing Testable Code

This lesson is for PRO members.

Upgrade today to get access to all the PRO lessons.

Unlock this lesson

Up next



This lesson describes how code should be structured to allow the full power of Mockito to be harnessed.

In this lesson you will learn:

How to make code more testable
Mockito can’t help us test if the code isn’t structured well in the first place
Taking control of dependencies using dependency injection
The problems caused when a class creates its own dependencies




There are no comments on this lesson, start the conversation below ...

You need to go PRO to post comments.

Lessons in Mockito