Why should I use MockWebServer instead of WireMock?

Every time I need to mock some HTTP requests my first choice is WireMock (which is actually the default one for this I think), but today I discovered an alternative tool - MockWebServer.

What are the pros and cons of WireMock vs MockWebServer ?

+3


source to share


1 answer


Basically MockWebServer

was invented to run smoothly on Android devices. There were several installation problems WireMock

on Android and that's why it was invented MockWebServer

.

If you are mocking your backend then I recommend WireMock

as it is more feature rich.

There is a good article on the topic here:



https://handstandsam.com/2016/01/30/running-wiremock-on-android/

especially the section "My recommendation"

+2


source







All Articles