Annotation Type IgnoreWithCondition


  • @Retention(RUNTIME)
    @Target({METHOD,TYPE})
    public @interface IgnoreWithCondition
    Marks a JUnit4 test to be conditionally ignored. Requires using IgnoreTestRule to take effect.

    Example usage:

    {@code
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      java.lang.Class<? extends com.android.testutils.ignore.IgnoreCondition> condition
      The condition indicating whether a test should be ignored.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String reason
      The reason why a test needs to be ignored.
    • Element Detail

      • condition

        java.lang.Class<? extends com.android.testutils.ignore.IgnoreCondition> condition
        The condition indicating whether a test should be ignored.
      • reason

        java.lang.String reason
        The reason why a test needs to be ignored.
        Default:
        ""