BorderTop extends AbstractCssProperty<BorderTop> implements StateChangeInformer<CssProperty> { public BorderTopColor getBorderTopColor() { return borderTopColor; } 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 testGetBorderTopColor() { BorderTop border = new BorderTop(); border.setCssValue("thick solid green"); assertEquals("thick solid green", border.getCssValue()); final BorderTopColor borderTopColor = border.getBorderTopColor(); assertTrue(borderTopColor.isAlreadyInUse()); assertEquals("green", borderTopColor.getValue()); border.setCssValue("thick solid"); assertNull(border.getBorderTopColor()); assertFalse(borderTopColor.isAlreadyInUse()); assertEquals("thick solid", border.getCssValue()); }