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()); } /**