Slide 147
Slide 147 text
前準備(Instrumentation Test)
176
package com.example
class CustomTestRunner : AndroidJUnitRunner() {
override fun newApplication(cl: ClassLoader?,
name: String?,
context: Context?): Application {
return super.newApplication(cl, HiltTestApplication::class.java.name, context)
}
}
CustomApplicationを指定した場合は
HiltTestApplication_Application