Class AssumeUtils

java.lang.Object
org.jboss.resteasy.utils.AssumeUtils

public class AssumeUtils extends Object
Utilities for test assumptions.
Author:
James R. Perkins
  • Constructor Details

    • AssumeUtils

      public AssumeUtils()
  • Method Details

    • canDisableFeatureSecureProcessing

      public static void canDisableFeatureSecureProcessing()
      Checks to see if the XMLConstants.FEATURE_SECURE_PROCESSING can be set to false. This is not allowed when the security manager is enabled. From the docs:

      While FSP can be turned on and off through factories, it is always on when a Java Security Manager is present and cannot be turned off.

    • assumeSecurityManagerDisabled

      public static void assumeSecurityManagerDisabled(String msg)
      Checks if the security.manager system property has been set.
      Parameters:
      msg - the message for the assumption