Package org.jboss.as.test.shared
Class IntermittentFailure
java.lang.Object
org.jboss.as.test.shared.IntermittentFailure
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidthisTestIsFailingIntermittently(String message) This method can be used to disable tests that are failing intermittently.
-
Constructor Details
-
IntermittentFailure
public IntermittentFailure()
-
-
Method Details
-
thisTestIsFailingIntermittently
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 thejboss.test.enableIntermittentFailingTestsSystem property. To run tests disabled by this method, you must add-Djboss.test.enableIntermittentFailingTestsargument to the JVM running the tests.- Parameters:
message- reason for disabling this test, typically specifying a tracking WFLY issue
-