Class IgnoreTestRule

  • All Implemented Interfaces:
    org.junit.rules.TestRule

    public class IgnoreTestRule
    extends java.lang.Object
    implements org.junit.rules.TestRule
    Allows ignoring of test methods using IgnoreWithCondition, and all tests within a class using allTestsMatching(Class).
    • Constructor Summary

      Constructors 
      Constructor Description
      IgnoreTestRule()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static IgnoreTestRule allTestsMatching​(java.lang.Class<? extends com.android.testutils.ignore.IgnoreCondition> ignoreConditionClass)  
      org.junit.runners.model.Statement apply​(org.junit.runners.model.Statement base, org.junit.runner.Description description)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IgnoreTestRule

        public IgnoreTestRule()
    • Method Detail

      • allTestsMatching

        public static IgnoreTestRule allTestsMatching​(java.lang.Class<? extends com.android.testutils.ignore.IgnoreCondition> ignoreConditionClass)
      • apply

        public org.junit.runners.model.Statement apply​(org.junit.runners.model.Statement base,
                                                       org.junit.runner.Description description)
        Specified by:
        apply in interface org.junit.rules.TestRule