Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
TestRunner using custom Application implementation
open class MockTestRunner : AndroidJUnitRunner() {
override fun onCreate(arguments: Bundle) {
@Throws(InstantiationException::class, IllegalAccessException::class, ClassNotFoundException::class)
override fun newApplication(cl: ClassLoader, className: String, context: Context): Application {
return super.newApplication(cl,, context)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment