-
- All Implemented Interfaces:
-
org.junit.rules.TestRule
public final class DetectLeaksAfterTestSuccess implements TestRuleTestRule that invokes LeakAssertions.assertNoLeaks after the test successfully evaluates. Pay attention to where you set up this rule in the rule chain as you might detect different leaks (e.g. around vs wrapped by the activity rule). It's also possible to use this rule several times in a rule chain.
This rule automatically applies the TestDescriptionHolder rule.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classDetectLeaksAfterTestSuccess.Companion
-
Constructor Summary
Constructors Constructor Description DetectLeaksAfterTestSuccess(String tag)
-
Method Summary
Modifier and Type Method Description Statementapply(Statement base, Description description)
-