BorderImageSource extends AbstractCssProperty<BorderImageSource> implements StateChangeInformer<Bean> { public void setAsInherit() { setCssValue(INHERIT); } BorderImageSource();  BorderImageSource(final String cssValue);  BorderImageSource(final BorderImageSource borderImageSource);  BorderImageSource(final String... imageUrls);  BorderImageSource(final UrlCss3Value... urlCss3Values); @Override String getCssName(); @Override String getCssValue(); @Override String toString(); @Override BorderImageSource 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() { BorderImageSource borderImageSource = new BorderImageSource(); borderImageSource.setImageUrls("/images/HelloDesign.jpg", "/images/HelloDesign2.jpg"); assertEquals("url(\"/images/HelloDesign.jpg\"), url(\"/images/HelloDesign2.jpg\")", borderImageSource.getCssValue()); assertNotNull(borderImageSource.getUrlCss3Values()); assertEquals(2, borderImageSource.getUrlCss3Values().size()); borderImageSource.setAsInherit(); assertNull(borderImageSource.getUrlCss3Values()); assertEquals(BorderImageSource.INHERIT, borderImageSource.getCssValue()); }