Skip to content

Instantly share code, notes, and snippets.

@ferPrieto
Created January 4, 2022 14:02
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save ferPrieto/229dad4930dac51d84b675dd7284e4ad to your computer and use it in GitHub Desktop.
class MockTestRunner : AndroidJUnitRunner() {
override fun onCreate(arguments: Bundle?) {
StrictMode.setThreadPolicy(StrictMode.ThreadPolicy.Builder().permitAll().build())
super.onCreate(arguments)
}
override fun newApplication(
cl: ClassLoader?,
className: String?,
context: Context?
): Application {
return super.newApplication(cl, HiltTestApplication::class.java.name, context)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment