Class IntermittentFailure

java.lang.Object
org.jboss.as.test.shared.IntermittentFailure

public final class IntermittentFailure extends Object
Utility class to disable (effectively @Ignore) intermittently failing tests unless explicitly enabled via a System property.
Author:
Jeff Mesnil (c) 2015 Red Hat inc.
  • Constructor Details

    • IntermittentFailure

      public IntermittentFailure()
  • Method Details

    • thisTestIsFailingIntermittently

      public static void thisTestIsFailingIntermittently(String message)
      This method can be used to disable tests that are failing intermittently. The purpose to calling this method (as opposed to annotating tests with @Ignore) is to be able to enable or disable the test based on the presence of the jboss.test.enableIntermittentFailingTests System property. To run tests disabled by this method, you must add -Djboss.test.enableIntermittentFailingTests argument to the JVM running the tests.
      Parameters:
      message - reason for disabling this test, typically specifying a tracking WFLY issue