void () { TestScaleHelper.assumeStandalone(); TestScaleHelper.assumeHeadful(); System.setProperty(JAVA2D_UI_SCALE_ENABLED_PROP, "true"); System.setProperty(JAVA2D_UI_SCALE_PROP, "3.0"); assertTrue(JAVA2D_UI_SCALE_ENABLED_PROP + " system property is ignored", JreHiDpiUtil.isJreHiDPIEnabled()); if (!SystemInfoRt.isMac) { assertEquals(JAVA2D_UI_SCALE_PROP + " system property is ignored", 3f, JBUIScale.INSTANCE.computeSystemScaleFactor(() -> null)); } }