BorderImageSource extends AbstractCssProperty<BorderImageSource> implements StateChangeInformer<Bean> { public List<UrlCss3Value> getUrlCss3Values() { if (urlCss3Values == null) { return null; } return Collections.unmodifiableList(Arrays.asList(urlCss3Values)); } 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 testGetUrlCss3Values() { { BorderImageSource cursor = new BorderImageSource(); String cssValue = "url(\"Test.png\") , url(sample)"; cursor.setCssValue(cssValue); assertEquals( CssNameConstants.BORDER_IMAGE_SOURCE+": url(\"Test.png\"), url(\"sample\")", cursor.toString()); List<UrlCss3Value> urlCss3ValuesFirst = cursor.getUrlCss3Values(); assertEquals(2, urlCss3ValuesFirst.size()); assertEquals("Test.png", urlCss3ValuesFirst.get(0).getUrl()); assertEquals("sample", urlCss3ValuesFirst.get(1).getUrl()); assertEquals(-1, urlCss3ValuesFirst.get(1).getX()); assertEquals(-1, urlCss3ValuesFirst.get(1).getY()); } { BorderImageSource cursor = new BorderImageSource(); UrlCss3Value urlCss3Value1 = new UrlCss3Value("url(\"Test.png\")"); UrlCss3Value urlCss3Value2 = new UrlCss3Value("url(sample)"); cursor.setImageUrls(urlCss3Value1, urlCss3Value2); assertEquals(CssNameConstants.BORDER_IMAGE_SOURCE + ": url(\"Test.png\"), url(\"sample\")", cursor.toString()); List<UrlCss3Value> urlCss3ValuesFirst = cursor.getUrlCss3Values(); assertEquals(2, urlCss3ValuesFirst.size()); assertEquals("Test.png", urlCss3ValuesFirst.get(0).getUrl()); assertEquals("sample", urlCss3ValuesFirst.get(1).getUrl()); assertEquals(-1, urlCss3ValuesFirst.get(1).getX()); assertEquals(-1, urlCss3ValuesFirst.get(1).getY()); } }