Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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)
- }
- }
Add Comment
Please, Sign In to add comment