Class TestRuleMarkFailure

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

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

  • Method Details

    • apply

      public Statement apply(Statement s, Description d)
      Specified by:
      apply in interface 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()).