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
Prarthona Paul authored and ivassile committed May 29, 2024
1 parent 720d8da commit 63639c7
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
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 63639c7

Please sign in to comment.