Package org.jboss.resteasy.utils
Class AssumeUtils
- java.lang.Object
-
- org.jboss.resteasy.utils.AssumeUtils
-
public class AssumeUtils extends Object
Utilities for test assumptions.- Author:
- James R. Perkins
-
-
Constructor Summary
Constructors Constructor Description AssumeUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidassumeSecurityManagerDisabled(String msg)Checks if thesecurity.managersystem property has been set.static voidcanDisableFeatureSecureProcessing()Checks to see if theXMLConstants.FEATURE_SECURE_PROCESSINGcan be set tofalse.
-
-
-
Method Detail
-
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
public static void assumeSecurityManagerDisabled(String msg)
Checks if thesecurity.managersystem property has been set.- Parameters:
msg- the message for the assumption
-
-