I’m mocking my coroutine deferred retrofit endpoin...
# squarelibraries
r
I’m mocking my coroutine deferred retrofit endpoints using
BehaviorDelegate<T>
and I’m struggling to understand how I should mock network error returns. When my endpoints used Rx
Single
, I needed to return
Single.error(Throwable)
. Do I need to do anything special now that the return type is
Deferred<Response<T>>
, or do I just throw?