Sign in Go Pro

Android MVP Pattern

Comprehensive Testing & the ViewNotFoundException

This lesson is for PRO members.

Upgrade today to get access to all the PRO lessons.

Unlock this lesson



In this Lesson you will learn:

  • How to test for when your view is not found without relying on NullPointerExceptions
  • Make your tests more robust
  • Why 100% code coverage is just a metric and does not represent test quality
  • How to develop new features such as the ViewNotFoundException as well as the null checking all using TDD.

- Passive View
- Repository Pattern
- jUnit4
- Mockito




Hmm I was expecting more info on MVP but instead got a lot of testing logic of MVP. Maybe the lesson title should be testing MVP.

yup. I think the title should mention testing also. But it's good to have some testing videos in order to show how MVP makes it easier to test your presenter layer


Lessons in Android MVP Pattern