Last active
January 26, 2021 11:56
-
-
Save canergulgec/1702a0af9267be3236d90432ce3205d4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@LargeTest | |
class MovieFragmentTest { | |
private val mockWebServer = MockWebServer() | |
@Before | |
fun setup() { | |
mockWebServer.start(port) | |
IdlingRegistry.getInstance().register( | |
OkHttp3IdlingResource.create( | |
"okhttp", | |
OkHttpProvider.getOkHttpClient() | |
) | |
) | |
} | |
@After | |
fun cleanup() { | |
mockWebServer.close() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment