Skip to content

Commit

Permalink
Extra assumptions test for headless enviornments
Browse files Browse the repository at this point in the history
  • Loading branch information
mikera committed Sep 10, 2024
1 parent c5d036b commit 357aa21
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions convex-gui/src/test/java/convex/gui/GUITest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -52,6 +54,7 @@ public class GUITest {
*/
public static void assumeGUI() {
assumeTrue(manager!=null);
assumeFalse(GraphicsEnvironment.isHeadless());
}

/**
Expand Down

0 comments on commit 357aa21

Please sign in to comment.