Is this your street address?

    Card

    ···· ···· ···· 4242
    Test card

    05/18

    Card

    Use a different card?

    Card

    pp paypal

    or pay with

    We do not keep any of your sensitive credit card information on file with us unless you ask us to after this purchase is complete.

    or pay with

    Please confirm your location:
    Your card will be charged .

    Thank you!

      Gumroad Library

      Download from the App Store or text yourself a link to the app

      Download from the App Store or text yourself a link to the app

      Send SMS
      Nevermind

      $4.99

      Testing SharedPreferences with Dagger and Espresso

      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

      Sorry, this item is not available in your location.
      Sold out, please go back and pick another option.

      You've purchased this product

      Give it a rating

      See it in your library

      0 ratings

      • 8 videos + source code

      Purchasing Testing SharedPreferences with Dagger and Espresso...

      Card

      ···· ···· ···· 4242
      Test card

      05/18

      Card

      Use a different card?

      Card

      pp paypal

      or pay with

      We do not keep any of your sensitive credit card information on file with us unless you ask us to after this purchase is complete.

      or pay with

      Please confirm your location:
      Your card will be charged US$4.99.

      Your rental will be available for 30 days. Once started, you’ll have 72 hours to watch it as much as you’d like!

      Thank you!

        Gumroad Library

        Download from the App Store or text yourself a link to the app

        Download from the App Store or text yourself a link to the app

        Send SMS
        Nevermind