FlexGrow extends AbstractCssProperty<FlexGrow> { public void setAsInitial() { setCssValue(INITIAL); } FlexGrow();  FlexGrow(final String cssValue);  FlexGrow(final FlexGrow flexGrow);  FlexGrow(final float value); @Override String getCssName(); @Override String getCssValue(); @Override String toString(); Float getValue(); void setValue(final float value); @Override FlexGrow setCssValue(final String cssValue); void setAsInitial(); void setAsInherit(); static boolean isValid(final String cssValue); static final String INITIAL; static final String INHERIT; }
@Test public void testSetAsInitial() { FlexGrow flexGrow = new FlexGrow(); flexGrow.setCssValue("0.5"); assertEquals(Float.valueOf(0.5F), flexGrow.getValue()); flexGrow.setAsInitial(); assertEquals(FlexGrow.INITIAL, flexGrow.getCssValue()); assertNull(flexGrow.getValue()); }