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