diff --git a/cacio-tta/src/main/java/com/github/caciocavallosilano/cacio/ctc/junit/CacioExtension.java b/cacio-tta/src/main/java/com/github/caciocavallosilano/cacio/ctc/junit/CacioExtension.java index 5626bde..7ddc219 100644 --- a/cacio-tta/src/main/java/com/github/caciocavallosilano/cacio/ctc/junit/CacioExtension.java +++ b/cacio-tta/src/main/java/com/github/caciocavallosilano/cacio/ctc/junit/CacioExtension.java @@ -89,7 +89,10 @@ public class CacioExtension implements ExecutionCondition { defaultHeadlessField.set(null, Boolean.FALSE); headlessField.set(null, Boolean.FALSE); - + Class smfCls = Class.forName("sun.java2d.SurfaceManagerFactory"); + Field smf = smfCls.getDeclaredField("instance"); + smf.setAccessible(true); + smf.set(null, null); } catch (Exception e) { e.printStackTrace(); }