Sign in Go Pro

The Android MVP Pattern

Code Coverage with Android Studio

This lesson is for PRO members.

Upgrade today to get access to all the PRO lessons.

Unlock this lesson

Up next

Previous

About

In this Lesson you will learn: - How to use the mockito `when` method to return values for given mock interactions - How to use the `verify` method to verify interactions on a mock - How to use the `times(…)` and `never` method to verify that mock methods were (or were not) interacted with during the execution of the test - How to use the built in Android Studio Code Coverage Tools - What the difference between class, method and line coverage is - How to find code paths that are and are not covered under test with the built in code coverage tools Links - [Passive View](http://martinfowler.com/eaaDev/PassiveScreen.html) - [Repository Pattern](http://martinfowler.com/eaaCatalog/repository.html) - [jUnit4](http://junit.org/junit4/) - [Mockito](http://mockito.org/)

Lessons in The Android MVP Pattern