public final class HiltAndroidRule
extends java.lang.Object
implements org.junit.rules.TestRule
TestRule
for Hilt that can be used with JVM or Instrumentation tests.
This rule is required. The Dagger component will not be created without this test rule.
Constructor and Description |
---|
HiltAndroidRule(java.lang.Object testInstance)
Creates a new instance of the rules.
|
Modifier and Type | Method and Description |
---|---|
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement baseStatement,
org.junit.runner.Description description) |
void |
inject() |