Skip to content

Instantly share code, notes, and snippets.

@makovkastar
Last active January 9, 2018 11:33
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 makovkastar/6041a379e3afaef6dd4552f11f937739 to your computer and use it in GitHub Desktop.
Save makovkastar/6041a379e3afaef6dd4552f11f937739 to your computer and use it in GitHub Desktop.
class AndroidTestRunner : AndroidJUnitRunner() {
override fun newApplication(cl: ClassLoader, className: String, context: Context): Application {
// The DexOpener library allows to make Kotlin classes, properties and functions
// open during tests in order to mock then with Mockito.
DexOpener.install(this)
return super.newApplication(cl, AndroidTestApplication::class.java.name, context)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment