Testing SharedPreferences with Dagger and Espresso

$4.99
$4.99
Chiu-Ki Chan
0 ratings

Learn how to test SharedPreferences in your Android app using Dagger and Espresso. This course gives you a good understanding of using dependency injection with Dagger to write predictable and repeatable tests.

The sample app is written with Dagger 2 and Espresso 2.2, and the source code is included.


Update on 2016-01-14: I have discovered a better way to supply the test component using mock application and custom test runner, and updated clip 6: "Using Dagger in app and test" video.


Table of content

1. Persistence with SharedPreferences

2. The sample app

3. Dagger overview

4. Application component

5. Test component

6. Using Dagger in app and test

7. Espresso tests

8. Summary

9. Old video for Using Dagger in app and test

  • 8 videos + source code

  • 8 videos + source code
Powered by

Checkout

Testing SharedPreferences with Dagger and Espresso

Enter your info to complete your purchase

Card

You'll be charged US$4.99.