MozFlexGrow extends AbstractCssProperty<MozFlexGrow> { @Override public String toString() { return getCssName() + ": " + getCssValue(); } MozFlexGrow();  MozFlexGrow(final String cssValue);  MozFlexGrow(final MozFlexGrow mozFlexGrow);  MozFlexGrow(final float value); @Override String getCssName(); @Override String getCssValue(); @Override String toString(); Float getValue(); void setValue(final float value); @Override MozFlexGrow 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 testToString() { MozFlexGrow mozFlexGrow = new MozFlexGrow(); assertEquals(Float.valueOf(0F), mozFlexGrow.getValue()); assertEquals(CssNameConstants.MOZ_FLEX_GROW + ": 0.0", mozFlexGrow.toString()); mozFlexGrow.setAsInherit(); assertEquals(CssNameConstants.MOZ_FLEX_GROW + ": " + MozFlexGrow.INHERIT, mozFlexGrow.toString()); assertNull(mozFlexGrow.getValue()); }