Last active
January 9, 2018 11:33
-
-
Save makovkastar/6041a379e3afaef6dd4552f11f937739 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
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