Hi,
I have been studying MVP testing (chapter 9) and I am getting this error:
io.reactivex.exceptions.UndeliverableException: The exception could not be delivered to the consumer because it has already canceled/disposed the flow or the exception has nowhere to go to begin with. Further reading: https://github.com/ReactiveX/RxJava/wiki/What's-different-in-2.0#error-handling | java.lang.RuntimeException: Method d in android.util.Log not mocked. See http://g.co/androidstudio/not-mocked for details.
at io.reactivex.plugins.RxJavaPlugins.onError(RxJavaPlugins.java:367)
at io.reactivex.Observable.subscribe(Observable.java:12292)
at io.reactivex.internal.operators.observable.ObservableSubscribeOn$SubscribeTask.run(ObservableSubscribeOn.java:96)
at io.reactivex.internal.schedulers.TrampolineScheduler.scheduleDirect(TrampolineScheduler.java:52)
at io.reactivex.internal.operators.observable.ObservableSubscribeOn.subscribeActual(ObservableSubscribeOn.java:36)
at io.reactivex.Observable.subscribe(Observable.java:12285)
at io.reactivex.internal.operators.observable.ObservableObserveOn.subscribeActual(ObservableObserveOn.java:41)
at io.reactivex.Observable.subscribe(Observable.java:12285)
at io.reactivex.Observable.subscribeWith(Observable.java:12337)
at com.raywenderlich.wewatch.main.MainPresenter.getMyMoviesList(MainPresenter.kt:46)
Basically the problem is Presenter class has import android.util.Log
. The tests on source code given with book is working fine (chapter 9 final) but mine is not working somehow. Can anyone help me fix this?