darrenatherton
02/18/2017, 3:58 PMreturn if (userId != null) {
the normal observable
} else {
Observable.error(NotLoggedInException())
}
The error handling itself doesn’t do anything:
{ error -> Log.e("presenter", error.message) }
So I’m wondering if it’s my test code:
thenReturn(Observable.error(NotLoggedInException())
The only other difference is using Schedulers.immediate() in test.