From 6c968b494b017ddfc579392ee58625759888239a Mon Sep 17 00:00:00 2001 From: weisj Date: Sun, 21 Jun 2020 21:56:20 +0200 Subject: [PATCH] Skip icon test in headless mode. --- .../test/java/com/github/weisj/darklaf/icons/IconUtilTest.java | 1 + 1 file changed, 1 insertion(+) diff --git a/property-loader/src/test/java/com/github/weisj/darklaf/icons/IconUtilTest.java b/property-loader/src/test/java/com/github/weisj/darklaf/icons/IconUtilTest.java index 78792443..315d48f2 100644 --- a/property-loader/src/test/java/com/github/weisj/darklaf/icons/IconUtilTest.java +++ b/property-loader/src/test/java/com/github/weisj/darklaf/icons/IconUtilTest.java @@ -36,6 +36,7 @@ public class IconUtilTest { @Test public void testWeakFrameCache() { + if (GraphicsEnvironment.isHeadless()) return; Object obj = new Object(); WeakReference ref = new WeakReference<>(obj); int count = 100;