Class MarkThatRulesRanRule
java.lang.Object
dagger.hilt.android.internal.testing.MarkThatRulesRanRule
- All Implemented Interfaces:
org.junit.rules.TestRule
A Junit
TestRule
that's installed in all Hilt tests.
This rule enforces that a Hilt TestRule has run. The Dagger component will not be created without this test rule.
-
Constructor Details
-
MarkThatRulesRanRule
-
-
Method Details
-
delayComponentReady
public void delayComponentReady() -
componentReady
public void componentReady() -
inject
public void inject() -
apply
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runner.Description description) - Specified by:
apply
in interfaceorg.junit.rules.TestRule
-