Created
June 12, 2021 21:13
-
-
Save Nyame123/63495c430f362e91721aa8d7d2213308 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
@HiltAndroidTest | |
class SettingsActivityTest { | |
@get:Rule | |
var hiltRule = HiltAndroidRule(this) | |
@Inject | |
lateinit var analyticsAdapter: AnalyticsAdapter | |
@Before | |
fun init() { | |
hiltRule.inject() | |
} | |
@Test | |
fun doSomeTest() { | |
// Can already use analyticsAdapter here. | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment