BorderImageWidth extends AbstractCssProperty<BorderImageWidth> { public void setPercent(final float percent) { setCssValue(String.valueOf(percent) + CssLengthUnit.PER); } 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 testSetPercent() { BorderImageWidth borderImageWidth = new BorderImageWidth(); borderImageWidth.setPercent(55F); assertEquals("55.0%", borderImageWidth.getCssValue()); assertNotNull(borderImageWidth.getTop()); assertNotNull(borderImageWidth.getRight()); assertNotNull(borderImageWidth.getBottom()); assertNotNull(borderImageWidth.getLeft()); assertTrue(55F == borderImageWidth.getTop()); assertTrue(55F == borderImageWidth.getRight()); assertTrue(55F == borderImageWidth.getBottom()); assertTrue(55F == borderImageWidth.getLeft()); assertNotNull(borderImageWidth.getTopUnit()); assertNotNull(borderImageWidth.getRightUnit()); assertNotNull(borderImageWidth.getBottomUnit()); assertNotNull(borderImageWidth.getLeftUnit()); assertEquals(CssLengthUnit.PER, borderImageWidth.getTopUnit()); assertEquals(CssLengthUnit.PER, borderImageWidth.getRightUnit()); assertEquals(CssLengthUnit.PER, borderImageWidth.getBottomUnit()); assertEquals(CssLengthUnit.PER, borderImageWidth.getLeftUnit()); }