Last active
June 15, 2023 19:45
-
-
Save tugceaktepe/a3dfab5ce4c250b39fe01e1f8ab16b66 to your computer and use it in GitHub Desktop.
Replace a binding
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
@UninstallModules( | |
UrlModule::class | |
) | |
@HiltAndroidTest | |
@RunWith(AndroidJUnit4::class) | |
class MainActivityTest { | |
@get:Rule | |
val hiltRule = HiltAndroidRule(this) | |
@Module | |
@InstallIn(SingletonComponent::class) | |
class FakeBaseUrlModule { | |
@Provides | |
@Singleton | |
fun provideUrl(): String = "http://127.0.0.1:8080/" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment