test_class.file: herd-code/herd-core/src/test/java/org/finra/herd/core/helper/SecurityManagerHelperTest.java
test_class.identifier: SecurityManagerHelperTest
test_case.body: @Test
      public void testDoPrivilegedWhenNoPermissionsRestrictedActionThrows()
      {
          Class<? extends Exception> expectedExceptionType = null;
          if (SecurityManagerHelper.isSecurityManagerEnabled())
          {
              expectedExceptionType = AccessControlException.class;
          }
  
          testDoPrivileged(expectedExceptionType, new PrivilegedAction<Void>()
          {
              @Override
              public Void run()
              {
                  System.getProperty("test");
                  return null;
              }
          });
      }
test_case.class_method_signature: SecurityManagerHelperTest.testDoPrivilegedWhenNoPermissionsRestrictedActionThrows()
test_case.full_signature: @Test public void testDoPrivilegedWhenNoPermissionsRestrictedActionThrows()
test_case.identifier: testDoPrivilegedWhenNoPermissionsRestrictedActionThrows
test_case.invocations: isSecurityManagerEnabled testDoPrivileged getProperty
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testDoPrivilegedWhenNoPermissionsRestrictedActionThrows()
focal_class.file: herd-code/herd-core/src/main/java/org/finra/herd/core/helper/SecurityManagerHelper.java
focal_class.identifier: SecurityManagerHelper
focal_class.class_method_signature: SecurityManagerHelper.isSecurityManagerEnabled()
focal_class.full_signature: public static boolean isSecurityManagerEnabled()
focal_class.identifier: isSecurityManagerEnabled
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isSecurityManagerEnabled()
focal_class.class_method_signature: SecurityManagerHelper.doPrivileged(PrivilegedAction<T> privilegedAction)
focal_class.full_signature: public static T doPrivileged(PrivilegedAction<T> privilegedAction)
focal_class.identifier: doPrivileged
focal_class.modifiers: public static
focal_class.parameters: (PrivilegedAction<T> privilegedAction)
focal_class.return: T
focal_class.signature: T doPrivileged(PrivilegedAction<T> privilegedAction)
focal_class.class_method_signature: SecurityManagerHelper.doPrivileged(PrivilegedAction<T> privilegedAction, Collection<Permission> permissions)
focal_class.full_signature: public static T doPrivileged(PrivilegedAction<T> privilegedAction, Collection<Permission> permissions)
focal_class.identifier: doPrivileged
focal_class.modifiers: public static
focal_class.parameters: (PrivilegedAction<T> privilegedAction, Collection<Permission> permissions)
focal_class.return: T
focal_class.signature: T doPrivileged(PrivilegedAction<T> privilegedAction, Collection<Permission> permissions)
focal_method.body: public static boolean isSecurityManagerEnabled()
      {
          return System.getSecurityManager() != null;
      }
focal_method.class_method_signature: SecurityManagerHelper.isSecurityManagerEnabled()
focal_method.full_signature: public static boolean isSecurityManagerEnabled()
focal_method.identifier: isSecurityManagerEnabled
focal_method.invocations: getSecurityManager
focal_method.modifiers: public static
focal_method.parameters: ()
focal_method.return: boolean
focal_method.signature: boolean isSecurityManagerEnabled()