Slide 6
Slide 6 text
When to mock ?
Mocking on Android
The answer is simple : as soon as you got a dependency.
Nevertheless, as you will see, when mocking becomes too complex, it often means
that your class should be split and redesigned.
Mocking makes testing more complicated. Try to stick to a common/comprehensible
structure inside your project’s tests, this will make them much easier to read.
Further on, we will see : ‘’GIVEN WHEN TEST‘’ which is a good structure, but not
the only one.