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 a23e681 commit 86ff26f
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 86ff26f

Please sign in to comment.