About

In this lesson you'll learn about an important design pattern, the Repository Pattern, to abstract the source of data in your MVVM application. We'll be adding a Repository to the Tip Calculator app to store and retrieve tips calculated by our users at various restaurants. We'll also look at how to test your Repository and how to test LiveData results.

Key concepts in this lesson that you will learn:

What the Repository pattern is and how to implement it within your app.

A TDD approach to defining your Repository API.

What LiveData is and it works in the scope of an Activity

How to test LiveData in a JVM / JUnit Test with the InstantTaskExecutorRule

Something went wrong

Lesson added to
playlist

Create new playlist

We've got you covered

At Caster.IO we provide the best hyper focused & bite-sized development training available. Our goal is to
not waste your time, but to give more of it to you. From implementing a new pattern to learning a new technology,
we've got you covered.