Skip to content

Commit

Permalink
[ELY-2726] Update AlternateSecurityManagerTest to be able to run with…
Browse files Browse the repository at this point in the history
… SE 21
  • Loading branch information
PrarthonaPaul committed Mar 14, 2024
1 parent 4486de0 commit 184342c
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -32,6 +32,7 @@
import java.util.Stack;

import org.junit.After;
import org.junit.Assume;
import org.junit.Before;
import org.junit.Test;
import org.wildfly.security.ParametricPrivilegedAction;
Expand Down Expand Up @@ -84,6 +85,8 @@ public class AlternateSecurityManagerTest {

@Before
public void before() {
Assume.assumeTrue("Skipping AlternateSecurityManagerTest suite, tests are not being run on JDK 17 or lower.",
Integer.parseInt(System.getProperty("java.specification.version")) <= 17);
AccessControlContext current = AccessController.getContext();
ProtectionDomain[] domains = getProtectionDomainStack(current);

Expand Down

0 comments on commit 184342c

Please sign in to comment.