Laur's blog
Sign in Subscribe

square

A collection of 1 post
Manually Create a Retrofit/OkHttp Response for Testing
android

Manually Create a Retrofit/OkHttp Response for Testing

I've got a method in an use case which requires a Retofit Response object as parameter and I need to test it. Now, I can use the Retrofit itself and build one with the network, but it would require the full android shebang. I've opted instead
Sep 21, 2015 1 min read
Page 1 of 1
Laur's blog © 2025
  • Sign up
Powered by Ghost