ListStyle extends AbstractCssProperty<ListStyle> implements StateChangeInformer<CssProperty> { public ListStyle setListStylePosition( final ListStylePosition listStylePosition) { final StringBuilder cssValueBuilder = new StringBuilder(); if (listStyleType != null) { cssValueBuilder.append(listStyleType.getCssValue()).append(' '); } if (listStylePosition != null) { cssValueBuilder.append(listStylePosition.getCssValue()).append(' '); } if (listStyleImage != null) { cssValueBuilder.append(listStyleImage.getCssValue()).append(' '); } final String trimmedCssValue = StringBuilderUtil .getTrimmedString(cssValueBuilder); cssValue = trimmedCssValue.isEmpty() ? INHERIT : trimmedCssValue; this.listStylePosition = listStylePosition; if (getStateChangeInformer() != null) { getStateChangeInformer().stateChanged(this); } return this; } ListStyle();  ListStyle(final String cssValue);  ListStyle(final ListStyle listStyle); @Override String getCssName(); @Override String getCssValue(); @Override String toString(); @Override ListStyle setCssValue(final String cssValue); static boolean isValid(final String cssValue); void setAsInitial(); void setAsInherit(); ListStyleImage getListStyleImage(); ListStylePosition getListStylePosition(); ListStyleType getListStyleType(); ListStyle setListStyleType(final ListStyleType listStyleType); ListStyle setListStylePosition(
            final ListStylePosition listStylePosition); ListStyle setListStyleImage(final ListStyleImage listStyleImage); @Override void stateChanged(final CssProperty stateChangedObject); static final String INITIAL; static final String INHERIT; }
@Test public void testSetListStylePosition() { try { final ListStyle listStyle = new ListStyle(); listStyle.setCssValue("circle inside url(Test.png)"); listStyle.setListStyleType(ListStyleType.DECIMAL); listStyle.setListStylePosition(ListStylePosition.OUTSIDE); assertEquals("decimal outside url(\"Test.png\")", listStyle.getCssValue()); assertNotNull(listStyle.getListStylePosition()); assertEquals(ListStylePosition.OUTSIDE, listStyle.getListStylePosition()); } catch (final Exception e) { e.printStackTrace(); fail("testSetCssValueString failed"); } }