FlexBasis extends AbstractCssProperty<FlexBasis> { public void setPercent(final float percent) { value = percent; cssLengthUnit = CssLengthUnit.PER; cssValue = String.valueOf(percent) + cssLengthUnit; if (getStateChangeInformer() != null) { getStateChangeInformer().stateChanged(this); } } FlexBasis();  FlexBasis(final String cssValue);  FlexBasis(final FlexBasis flexBasis);  FlexBasis(final float percent);  FlexBasis(final float value, final CssLengthUnit cssLengthUnit); FlexBasis 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 FlexBasis setCssValue(final String cssValue); void setAsInitial(); void setAsInherit(); void setAsAuto(); static boolean isValid(final String cssValue); static final String AUTO; static final String INITIAL; static final String INHERIT; }
@Test public void testSetPercent() { { FlexBasis flexBasis = new FlexBasis(); flexBasis.setPercent(75); assertEquals("75.0%", flexBasis.getCssValue()); assertEquals(CssLengthUnit.PER, flexBasis.getUnit()); assertTrue(flexBasis.getValue() == 75); } }