Skip to content

Commit

Permalink
see #21005 - fix assumption
Browse files Browse the repository at this point in the history
git-svn-id: https://josm.openstreetmap.de/svn/trunk@18350 0c6e7542-c601-0410-84e7-c038aed88b3b
  • Loading branch information
don-vip committed Dec 21, 2021
1 parent 0370689 commit 621111a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/unit/org/openstreetmap/josm/actions/ExitActionTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

import java.awt.GraphicsEnvironment;

import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.RegisterExtension;
import org.openstreetmap.josm.TestUtils;
Expand Down Expand Up @@ -36,14 +37,18 @@ final class ExitActionTest {
@SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
public JOSMTestRules test = new JOSMTestRules().main();

@BeforeAll
static void beforeAll() {
assumeTrue(Utils.getJavaVersion() < 18 || "allow".equals(System.getProperty("java.security.manager")));
}

/**
* Unit test of {@link ExitAction#actionPerformed}
*/
@Test
@ExpectSystemExitWithStatus(0)
void testActionPerformed() {
TestUtils.assumeWorkingJMockit();
assumeTrue(Utils.getJavaVersion() < 18 || "allow".equals(System.getProperty("java.security.manager")));

boolean[] workerShutdownCalled = {false};
boolean[] workerShutdownNowCalled = {false};
Expand Down

0 comments on commit 621111a

Please sign in to comment.