Ignore:
Timestamp:
2021-12-21T04:11:41+01:00 (3 years ago)
Author:
Don-vip
Message:

see #21005 - fix assumption

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/actions/ExitActionTest.java

    r18349 r18350  
    77import java.awt.GraphicsEnvironment;
    88
     9import org.junit.jupiter.api.BeforeAll;
    910import org.junit.jupiter.api.Test;
    1011import org.junit.jupiter.api.extension.RegisterExtension;
     
    3738    public JOSMTestRules test = new JOSMTestRules().main();
    3839
     40    @BeforeAll
     41    static void beforeAll() {
     42        assumeTrue(Utils.getJavaVersion() < 18 || "allow".equals(System.getProperty("java.security.manager")));
     43    }
     44
    3945    /**
    4046     * Unit test of {@link ExitAction#actionPerformed}
     
    4450    void testActionPerformed() {
    4551        TestUtils.assumeWorkingJMockit();
    46         assumeTrue(Utils.getJavaVersion() < 18 || "allow".equals(System.getProperty("java.security.manager")));
    4752
    4853        boolean[] workerShutdownCalled = {false};
Note: See TracChangeset for help on using the changeset viewer.