Skip to content

Instantly share code, notes, and snippets.

@tizisdeepan
Created July 28, 2020 17:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tizisdeepan/a5e7742be5f4c940a44aa62de49e7c5e to your computer and use it in GitHub Desktop.
Save tizisdeepan/a5e7742be5f4c940a44aa62de49e7c5e to your computer and use it in GitHub Desktop.
@HiltAndroidTest
class HiltTest {
@get:Rule val hiltRule = HiltAndroidRule(this)
@Inject lateinit var apiService: ApiService
@Test
fun testFoo() {
hiltRule.inject()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment