void () { JBUIScale.setUserScaleFactor((float)1); JBValueGroup group = new JBValueGroup(); JBValue value1 = group.value(1); JBValue value2 = group.value(2); JBValue value3 = group.value(3.6f); JBUIScale.setUserScaleFactor((float)2); assertEquals(JBUIScale.scale(1), value1.get()); assertEquals(JBUIScale.scale(2), value2.get()); assertEquals(Math.round(JBUIScale.scale(3.6f)), value3.get()); assertEquals(JBUIScale.scale(3.6f), value3.getFloat()); group.dispose(); int scale = JBUIScale.scale(1); JBUIScale.setUserScaleFactor((float)1); assertEquals(scale, value1.get()); assertEquals(scale * 2, value2.get()); assertEquals(Math.round(scale * 3.6f), value3.get()); assertEquals(scale * 3.6f, value3.getFloat()); }