Class SecurityManagerFailure

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

public final class SecurityManagerFailure extends Object
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 Details

    • SecurityManagerFailure

      public SecurityManagerFailure()
  • Method Details

    • thisTestIsFailingUnderSM

      public static void thisTestIsFailingUnderSM(String message)
      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 the jboss.test.enableTestsFailingUnderSM system property. To run tests disabled by this method, you must add -Djboss.test.enableTestsFailingUnderSM argument 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: