1

I've followed the response in How to mock services with Retrofit 2.0 and the new MockRetrofit class?

So now my question is how do I mock a Result Eg. Observable<Result<String>>

PS. In reality the String would be an actual POJO with a complex structure.

Community
  • 1
  • 1
ejohansson
  • 2,832
  • 1
  • 23
  • 30
  • You can use OkHttp Mock Server and no need to mock this call. Please check https://github.com/square/okhttp/tree/master/mockwebserver – Sagar Trehan Jul 12 '16 at 12:57

0 Answers0