Class CloseGuardRule

java.lang.Object
org.junit.rules.Verifier
org.robolectric.junit.rules.CloseGuardRule
All Implemented Interfaces:
org.junit.rules.TestRule

public final class CloseGuardRule extends org.junit.rules.Verifier
Rule for failing tests that leave any CloseGuards open.
  • Constructor Details

    • CloseGuardRule

      public CloseGuardRule()
  • Method Details

    • verify

      public void verify() throws Throwable
      Overrides:
      verify in class org.junit.rules.Verifier
      Throws:
      Throwable