Package org.jboss.resteasy.utils
Class AssumeUtils
java.lang.Object
org.jboss.resteasy.utils.AssumeUtils
Utilities for test assumptions.
- Author:
- James R. Perkins
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidChecks if thesecurity.managersystem property has been set.static voidChecks to see if theXMLConstants.FEATURE_SECURE_PROCESSINGcan be set tofalse.
-
Constructor Details
-
AssumeUtils
public AssumeUtils()
-
-
Method Details
-
canDisableFeatureSecureProcessing
public static void canDisableFeatureSecureProcessing()Checks to see if theXMLConstants.FEATURE_SECURE_PROCESSINGcan be set tofalse. 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
Checks if thesecurity.managersystem property has been set.- Parameters:
msg- the message for the assumption
-