Outline extends AbstractCssProperty<Outline> implements StateChangeInformer<CssProperty> { @Override public String getCssValue() { return cssValue; } Outline();  Outline(final String cssValue);  Outline(final Outline outline); @Override String getCssName(); @Override String getCssValue(); @Override String toString(); @Override Outline setCssValue(final String cssValue); static boolean isValid(final String cssValue); void setAsInitial(); void setAsInherit(); OutlineColor getOutlineColor(); OutlineStyle getOutlineStyle(); OutlineWidth getOutlineWidth(); Outline setOutlineWidth(final OutlineWidth outlineWidth); Outline setOutlineStyle(final OutlineStyle outlineStyle); Outline setOutlineColor(final OutlineColor outlineColor); @Override void stateChanged(final CssProperty stateChangedObject); static final String INITIAL; static final String INHERIT; }
@Test public void testGetCssValue() { Outline border = new Outline(); border.setCssValue("green solid thick"); assertEquals("green solid thick", border.getCssValue()); final OutlineWidth outlineWidth = border.getOutlineWidth(); assertTrue(outlineWidth.isAlreadyInUse()); assertEquals("thick", outlineWidth.getCssValue()); final OutlineStyle outlineStyle = border.getOutlineStyle(); assertEquals("solid", outlineStyle.getCssValue()); final OutlineColor outlineColor = border.getOutlineColor(); assertTrue(outlineColor.isAlreadyInUse()); assertEquals("green", outlineColor.getCssValue()); border.setAsInitial(); assertFalse(outlineWidth.isAlreadyInUse()); assertFalse(outlineColor.isAlreadyInUse()); }