Top extends AbstractCssProperty<Top> { public void setAsInherit() { setCssValue(INHERIT); } Top();  Top(final String cssValue);  Top(final Top top);  Top(final float percent);  Top(final float value, final CssLengthUnit cssLengthUnit); Top 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 Top 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 testSetAsInherit() { Top top = new Top(); top.setAsInherit(); assertEquals(Top.INHERIT, top.getCssValue()); }