BorderTop extends AbstractCssProperty<BorderTop> implements StateChangeInformer<CssProperty> { public BorderTop() { setCssValue("medium none black"); } 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 testBorderTop() { BorderTop border = new BorderTop(); assertEquals("medium none black", border.getCssValue()); final BorderTopWidth borderTopWidth = border.getBorderTopWidth(); assertTrue(borderTopWidth.isAlreadyInUse()); assertEquals("medium", borderTopWidth.getCssValue()); final BorderTopStyle borderTopStyle = border.getBorderTopStyle(); assertEquals("none", borderTopStyle.getCssValue()); final BorderTopColor borderTopColor = border.getBorderTopColor(); assertTrue(borderTopColor.isAlreadyInUse()); assertEquals("black", borderTopColor.getCssValue()); border.setAsInitial(); assertFalse(borderTopWidth.isAlreadyInUse()); assertFalse(borderTopColor.isAlreadyInUse()); }