Skip to content

Instantly share code, notes, and snippets.

@ashley-figueira
Last active December 1, 2020 16:20
Show Gist options
  • Save ashley-figueira/8d87b252e794c61e0add0916c8888347 to your computer and use it in GitHub Desktop.
Save ashley-figueira/8d87b252e794c61e0add0916c8888347 to your computer and use it in GitHub Desktop.
class FragmentTest {
protected lateinit var mockWebServer: MockWebServer
@Before
fun setUp() {
mockWebServer = MockWebServer()
mockWebServer.start(8080)
}
@After
fun tearDown() {
mockWebServer.shutdown()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment