BorderImageWidth extends AbstractCssProperty<BorderImageWidth> { @Override public String toString() { return getCssName() + ": " + getCssValue(); } BorderImageWidth();  BorderImageWidth(final String cssValue);  BorderImageWidth(final BorderImageWidth bottom);  BorderImageWidth(final float percent);  BorderImageWidth(final float value,
            final CssLengthUnit cssLengthUnit); void setPercent(final float percent); @Override String getCssName(); @Override String getCssValue(); @Override String toString(); @Override BorderImageWidth setCssValue(final String cssValue); void setAsInitial(); void setAsInherit(); void setAsAuto(); void setBorderImageTopRightBottomLeft(final Float top,
            final Float right, final Float bottom, final Float left,
            final CssLengthUnit unit); void setBorderImageTopRightBottomLeft(final Float top,
            final CssLengthUnit topUnit, final Float right,
            final CssLengthUnit rightUnit, final Float bottom,
            final CssLengthUnit bottomUnit, final Float left,
            final CssLengthUnit leftUnit); void setTop(final Float top, final CssLengthUnit topUnit); void setRight(final Float right, final CssLengthUnit rightUnit); void setBottom(final Float bottom, final CssLengthUnit bottomUnit); void setLeft(final Float left, final CssLengthUnit leftUnit); Float getTop(); CssLengthUnit getTopUnit(); Float getRight(); CssLengthUnit getRightUnit(); Float getBottom(); CssLengthUnit getBottomUnit(); Float getLeft(); CssLengthUnit getLeftUnit(); static boolean isValid(final String cssValue); boolean hasPredefinedConstantValue(); static final String AUTO; static final String INITIAL; static final String INHERIT; }
@Test public void testToString() { { BorderImageWidth borderImageWidth = new BorderImageWidth( "25px 25px 55px 55px"); assertEquals( CssNameConstants.BORDER_IMAGE_WIDTH + ": 25.0px 25.0px 55.0px 55.0px", borderImageWidth.toString()); } { BorderImageWidth borderImageWidth = new BorderImageWidth( "25px 25px 25px 55px"); assertEquals( CssNameConstants.BORDER_IMAGE_WIDTH + ": 25.0px 25.0px 25.0px 55.0px", borderImageWidth.toString()); } { BorderImageWidth borderImageWidth = new BorderImageWidth( "25px 25px 55px 55px"); assertEquals( CssNameConstants.BORDER_IMAGE_WIDTH + ": 25.0px 25.0px 55.0px 55.0px", borderImageWidth.toString()); } { BorderImageWidth borderImageWidth = new BorderImageWidth( "25px 25px 25px 25px"); assertEquals(CssNameConstants.BORDER_IMAGE_WIDTH + ": 25.0px", borderImageWidth.toString()); } { BorderImageWidth borderImageWidth = new BorderImageWidth( "35px 25px 45px 25px "); assertEquals( CssNameConstants.BORDER_IMAGE_WIDTH + ": 35.0px 25.0px 45.0px", borderImageWidth.toString()); } { BorderImageWidth borderImageWidth = new BorderImageWidth( "35px 25px 35px 25px "); assertEquals( CssNameConstants.BORDER_IMAGE_WIDTH + ": 35.0px 25.0px", borderImageWidth.toString()); } }