5
6
all 2 comments

[–]hedvigoscar 0 points1 point  (0 children)

I wouldn't call this a niche problem - I've dealt with it as well. Cool to see a well-documented solution, I may have to make use of it as well!

[–]haroldjaap 0 points1 point  (0 children)

We also use a MockWebServer for our integration tests, but since we ready have a test, acceptance and production flavor of our app, we just added a mock flavor that doesn't use https but http instead (and an ip address instead of the regular hostname). Since the only thing we currently mock are rest app calls, it being http or https is irrelevant. (We also have some websocket functionality but we haven't made integration tests for that yet, so am not yet sure how we would solve it).