From 357aa212f0e54689c09dfaa7feb85bb0f4b3f07b Mon Sep 17 00:00:00 2001 From: mikera Date: Tue, 10 Sep 2024 11:06:42 +0100 Subject: [PATCH] Extra assumptions test for headless enviornments --- convex-gui/src/test/java/convex/gui/GUITest.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/convex-gui/src/test/java/convex/gui/GUITest.java b/convex-gui/src/test/java/convex/gui/GUITest.java index 3677e3cce..71b02f838 100644 --- a/convex-gui/src/test/java/convex/gui/GUITest.java +++ b/convex-gui/src/test/java/convex/gui/GUITest.java @@ -2,8 +2,10 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; +import static org.junit.jupiter.api.Assumptions.assumeFalse; import static org.junit.jupiter.api.Assumptions.assumeTrue; +import java.awt.GraphicsEnvironment; import java.awt.HeadlessException; import org.junit.jupiter.api.Test; @@ -52,6 +54,7 @@ public class GUITest { */ public static void assumeGUI() { assumeTrue(manager!=null); + assumeFalse(GraphicsEnvironment.isHeadless()); } /**