BorderTop extends AbstractCssProperty<BorderTop> implements StateChangeInformer<CssProperty> { public void setAsInherit() { setCssValue(INHERIT); } BorderTop();  BorderTop(final String cssValue);  BorderTop(final BorderTop borderTop); @Override String getCssName(); @Override String getCssValue(); @Override String toString(); @Override BorderTop setCssValue(final String cssValue); static boolean isValid(final String cssValue); void setAsInitial(); void setAsInherit(); BorderTopColor getBorderTopColor(); BorderTopStyle getBorderTopStyle(); BorderTopWidth getBorderTopWidth(); BorderTop setBorderTopWidth(final BorderTopWidth borderTopWidth); BorderTop setBorderTopStyle(final BorderTopStyle borderTopStyle); BorderTop setBorderTopColor(final BorderTopColor borderTopColor); @Override void stateChanged(final CssProperty stateChangedObject); static final String INITIAL; static final String INHERIT; }
@Test public void testSetAsInherit() { BorderTop border = new BorderTop(); border.setCssValue("thick solid green"); assertEquals("thick solid green", border.getCssValue()); border.setAsInherit(); assertEquals("inherit", border.getCssValue()); }