Package org.jboss.as.test.shared
Class SecurityManagerFailure
java.lang.Object
org.jboss.as.test.shared.SecurityManagerFailure
Utility class to disable tests failing when Security Manager is enabled.
Important note: this should be used only in cases when tests are failing due to a thirdparty issues which are
unlikely to get fixed, e.g. WFLY-6192.
- Author:
- Ivo Studensky
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidthisTestIsFailingUnderSM(String message) This method can be used to disable tests that are failing when being run under Security Manager.
-
Constructor Details
-
SecurityManagerFailure
public SecurityManagerFailure()
-
-
Method Details
-
thisTestIsFailingUnderSM
This method can be used to disable tests that are failing when being run under Security Manager. The purpose to calling this method (as opposed to providing additional permissions which might hide the actual problem permanently) is to be able to enable or disable the test based on the presence of thejboss.test.enableTestsFailingUnderSMsystem property. To run tests disabled by this method, you must add-Djboss.test.enableTestsFailingUnderSMargument to the JVM running the tests.- Parameters:
message- an optional description about disabling this test (e.g. it can contain a WFLY issue).
-
thisTestIsFailingUnderSM
public static void thisTestIsFailingUnderSM()- See Also:
-