BorderRight extends AbstractCssProperty<BorderRight> implements StateChangeInformer<CssProperty> { public BorderRight setBorderRightStyle( final BorderRightStyle borderRightStyle) { final StringBuilder cssValueBuilder = new StringBuilder(); if (borderRightWidth != null) { cssValueBuilder.append(borderRightWidth.getCssValue()).append(' '); } if (borderRightStyle != null) { cssValueBuilder.append(borderRightStyle.getCssValue()).append(' '); } if (borderRightColor != null) { cssValueBuilder.append(borderRightColor.getCssValue()).append(' '); } final String trimmedCssValue = StringBuilderUtil .getTrimmedString(cssValueBuilder).toString(); cssValue = trimmedCssValue.isEmpty() ? INHERIT : trimmedCssValue; this.borderRightStyle = borderRightStyle; if (getStateChangeInformer() != null) { getStateChangeInformer().stateChanged(this); } return this; } BorderRight();  BorderRight(final String cssValue);  BorderRight(final BorderRight borderRight); @Override String getCssName(); @Override String getCssValue(); @Override String toString(); @Override BorderRight setCssValue(final String cssValue); static boolean isValid(final String cssValue); void setAsInitial(); void setAsInherit(); BorderRightColor getBorderRightColor(); BorderRightStyle getBorderRightStyle(); BorderRightWidth getBorderRightWidth(); BorderRight setBorderRightWidth(
            final BorderRightWidth borderRightWidth); BorderRight setBorderRightStyle(
            final BorderRightStyle borderRightStyle); BorderRight setBorderRightColor(
            final BorderRightColor borderRightColor); @Override void stateChanged(final CssProperty stateChangedObject); static final String INITIAL; static final String INHERIT; }
@Test public void testSetBorderRightStyle() { BorderRight border = new BorderRight(); border.setCssValue("thick solid green"); assertEquals("thick solid green", border.getCssValue()); border.setBorderRightStyle(null); assertEquals("thick green", border.getCssValue()); border.setBorderRightStyle(BorderRightStyle.GROOVE); assertEquals("thick groove green", border.getCssValue()); border.setCssValue("thick red"); assertNull(border.getBorderRightStyle()); assertEquals("thick red", border.getCssValue()); }