Class TestRuleMarkFailure

java.lang.Object
org.apache.lucene.tests.util.TestRuleMarkFailure
All Implemented Interfaces:
org.junit.rules.TestRule

public final class TestRuleMarkFailure extends Object implements org.junit.rules.TestRule
A rule for marking failed tests and suites.
  • Constructor Details

  • Method Details

    • apply

      public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement s, Description d)
      Specified by:
      apply in interface org.junit.rules.TestRule
    • isAssumption

      public static boolean isAssumption(Throwable t)
      Is a given exception (or a MultipleFailureException) an AssumptionViolatedException?
    • markFailed

      public void markFailed()
      Taints this object and any chained as having failures.
    • hadFailures

      public boolean hadFailures()
      Check if this object had any marked failures.
    • wasSuccessful

      public boolean wasSuccessful()
      Check if this object was successful (the opposite of hadFailures()).