OutlineWidth extends AbstractCssProperty<OutlineWidth> { public void setPercent(final float percent) { value = percent; cssLengthUnit = CssLengthUnit.PER; cssValue = String.valueOf(percent) + cssLengthUnit; if (getStateChangeInformer() != null) { getStateChangeInformer().stateChanged(this); } } OutlineWidth();  OutlineWidth(final String cssValue);  OutlineWidth(final OutlineWidth outlineWidth);  OutlineWidth(final float percent);  OutlineWidth(final float value, final CssLengthUnit cssLengthUnit); OutlineWidth setValue(final float value,
            final CssLengthUnit cssLengthUnit); void setPercent(final float percent); @Override String getCssName(); @Override String getCssValue(); @Override String toString(); Float getValue(); CssLengthUnit getUnit(); @Override OutlineWidth setCssValue(final String cssValue); void setAsInitial(); void setAsInherit(); void setAsMedium(); void setAsThin(); void setAsThick(); static boolean isValid(final String cssValue); static final String MEDIUM; static final String THIN; static final String THICK; static final String INITIAL; static final String INHERIT; }
@Test public void testSetPercent() { { OutlineWidth outlineWidth = new OutlineWidth(); outlineWidth.setPercent(75); assertEquals("75.0%", outlineWidth.getCssValue()); assertEquals(CssLengthUnit.PER, outlineWidth.getUnit()); assertTrue(outlineWidth.getValue() == 75); } }