# MockWebServer + HTTPS

DevFeed: [MockWebServer + HTTPS](<https://devfeed.tech/articles/mockwebserver-https-25667.md>)

Original publisher: [Read original article](<https://adambennett.dev/2021/09/mockwebserver--https/>)

Published: 2021-09-11T07:06:08Z

Content type: tutorial

Language: en

Sources: [Posts on Adam Bennett](<https://devfeed.tech/sources/posts-on-adam-bennett.md>)

Topics: [configuration](<https://devfeed.tech/topics/configuration.md>), [Testing](<https://devfeed.tech/topics/testing.md>), [Instrumentation](<https://devfeed.tech/topics/instrumentation.md>), [JSON](<https://devfeed.tech/topics/json.md>), [Network](<https://devfeed.tech/topics/network.md>), [Firebase](<https://devfeed.tech/topics/firebase.md>)

Tags: [algorithms](<https://devfeed.tech/tags/algorithms.md>), [android](<https://devfeed.tech/tags/android.md>), [blog](<https://devfeed.tech/tags/blog.md>), [career](<https://devfeed.tech/tags/career.md>), [compose](<https://devfeed.tech/tags/compose.md>), [configuration](<https://devfeed.tech/tags/configuration.md>), [development](<https://devfeed.tech/tags/development.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [finance](<https://devfeed.tech/tags/finance.md>), [functional](<https://devfeed.tech/tags/functional.md>), [growth](<https://devfeed.tech/tags/growth.md>), [harness](<https://devfeed.tech/tags/harness.md>), [instrumentation](<https://devfeed.tech/tags/instrumentation.md>), [java](<https://devfeed.tech/tags/java.md>), [jetpack](<https://devfeed.tech/tags/jetpack.md>), [json](<https://devfeed.tech/tags/json.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [money](<https://devfeed.tech/tags/money.md>), [network](<https://devfeed.tech/tags/network.md>), [opinions](<https://devfeed.tech/tags/opinions.md>), [security](<https://devfeed.tech/tags/security.md>), [software](<https://devfeed.tech/tags/software.md>), [startups](<https://devfeed.tech/tags/startups.md>), [test-lab](<https://devfeed.tech/tags/test-lab.md>), [testing](<https://devfeed.tech/tags/testing.md>), [thoughts](<https://devfeed.tech/tags/thoughts.md>), [training](<https://devfeed.tech/tags/training.md>), [tutorial](<https://devfeed.tech/tags/tutorial.md>)

## AI overview

This article describes configuring MockWebServer to serve HTTPS responses for instrumentation tests. It explains the testing context, including acceptance and regression testing, legacy-code verification, network interception, Firebase Test Lab, and JSON responses for edge cases.

## Source excerpt

Recently I ran into a fairly niche configuration problem with MockWebServer, where I needed to be able to connect to the server via https. What follows is some notes on the problem and the solution we used - hopefully somebody else finds this information useful and I'm sure there are other solutions which would have worked just as well.