Last active
January 10, 2023 09:03
-
-
Save aqua30/986bb650fa93df8148af288320f38631 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
private lateinit var repository: UserRepository | |
private lateinit var testApis: TestApis | |
private lateinit var mockWebServer: MockWebServer | |
@Before | |
fun setUp() { | |
mockWebServer = MockWebServer() | |
mockWebServer.start() | |
testApis = RetrofitHelper.testApiInstance(mockWebServer.url("/").toString()) | |
repository = UserRepositoryImpl(testApis) | |
} | |
@After | |
fun tearDown() { | |
mockWebServer.shutdown() | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is missing from the article