In this lesson we're going to write a couple of tests for the Browse Projects activity so that we can gain some experience in writing UI tests for the current project setup.
I was getting an error when running the first test activityLaunches(). My error was:
"java.lang.RuntimeException: java.lang.NullPointerException: Attempt to invoke virtual method 'io.reactivex.Observable io.reactivex.Observable.subscribeOn(io.reactivex.Scheduler)' on a null object reference"
As usual my best bet was to search through Joe's working branch and I found the minor code change Joe had made but was NOT mentioned in the videos. To fix the problem you need to add @singleton annotation to the provideDataRepository() function within the TestDataModule.