Changeset 18349 in josm for trunk/test/unit


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

see #21005 - Assume security manager property is set on Java >= 18

Doesn't work right now, don't know why

File:
1 edited

Legend:

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

    r17277 r18349  
    33
    44import static org.junit.jupiter.api.Assertions.assertTrue;
     5import static org.junit.jupiter.api.Assumptions.assumeTrue;
    56
    67import java.awt.GraphicsEnvironment;
     
    1516import org.openstreetmap.josm.testutils.JOSMTestRules;
    1617import org.openstreetmap.josm.tools.ImageProvider;
     18import org.openstreetmap.josm.tools.Utils;
    1719
    1820import com.ginsberg.junit.exit.ExpectSystemExitWithStatus;
     
    4244    void testActionPerformed() {
    4345        TestUtils.assumeWorkingJMockit();
     46        assumeTrue(Utils.getJavaVersion() < 18 || "allow".equals(System.getProperty("java.security.manager")));
    4447
    4548        boolean[] workerShutdownCalled = {false};
Note: See TracChangeset for help on using the changeset viewer.