Icon extends AbstractCssProperty<Icon> implements StateChangeInformer<Bean> { public void setAsInherit() { setCssValue(INHERIT); } Icon();  Icon(final String cssValue);  Icon(final Icon icon);  Icon(final String... imageUrls);  Icon(final UrlCss3Value... urlCss3Values); @Override String getCssName(); @Override String getCssValue(); @Override String toString(); @Override Icon setCssValue(final String cssValue); void setImageUrls(final String... imageUrls); void setImageUrls(final UrlCss3Value... urlCss3Values); List<UrlCss3Value> getUrlCss3Values(); void setAsInitial(); void setAsInherit(); @Override void stateChanged(final Bean stateChangedObject); static final String INITIAL; static final String INHERIT; static final String NONE; }
@Test public void testSetAsInherit() { Icon icon = new Icon(); icon.setImageUrls("/images/HelloDesign.jpg", "/images/HelloDesign2.jpg"); assertEquals("url(\"/images/HelloDesign.jpg\"), url(\"/images/HelloDesign2.jpg\")", icon.getCssValue()); assertNotNull(icon.getUrlCss3Values()); assertEquals(2, icon.getUrlCss3Values().size()); icon.setAsInherit(); assertNull(icon.getUrlCss3Values()); assertEquals(Icon.INHERIT, icon.getCssValue()); }