BorderImageOutset extends AbstractCssProperty<BorderImageOutset> { public void setLeft(final Float left, final CssLengthUnit leftUnit) { cssValue = getProducedCssValue(top, topUnit, right, rightUnit, bottom, bottomUnit, left, leftUnit); this.left = left; this.leftUnit = leftUnit; final StateChangeInformer<CssProperty> stateChangeInformer = getStateChangeInformer(); if (stateChangeInformer != null) { stateChangeInformer.stateChanged(this); } } BorderImageOutset();  BorderImageOutset(final String cssValue);  BorderImageOutset(final BorderImageOutset bottom);  BorderImageOutset(final float percent);  BorderImageOutset(final float value,
            final CssLengthUnit cssLengthUnit); void setPercent(final float percent); @Override String getCssName(); @Override String getCssValue(); @Override String toString(); @Override BorderImageOutset setCssValue(final String cssValue); void setAsInitial(); void setAsInherit(); 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 INITIAL; static final String INHERIT; }
@Test public void testSetLeft() { BorderImageOutset borderImageOutset = new BorderImageOutset(); borderImageOutset.setBorderImageTopRightBottomLeft(5F, CssLengthUnit.CH, 10F, CssLengthUnit.CM, 15F, CssLengthUnit.EM, 20F, CssLengthUnit.EX); assertEquals("5.0ch 10.0cm 15.0em 20.0ex", borderImageOutset.getCssValue()); assertNotNull(borderImageOutset.getTop()); assertNotNull(borderImageOutset.getRight()); assertNotNull(borderImageOutset.getBottom()); assertNotNull(borderImageOutset.getLeft()); assertTrue(5F == borderImageOutset.getTop()); assertTrue(10F == borderImageOutset.getRight()); assertTrue(15F == borderImageOutset.getBottom()); assertTrue(20F == borderImageOutset.getLeft()); assertNotNull(borderImageOutset.getTopUnit()); assertNotNull(borderImageOutset.getRightUnit()); assertNotNull(borderImageOutset.getBottomUnit()); assertNotNull(borderImageOutset.getLeftUnit()); assertEquals(CssLengthUnit.CH, borderImageOutset.getTopUnit()); assertEquals(CssLengthUnit.CM, borderImageOutset.getRightUnit()); assertEquals(CssLengthUnit.EM, borderImageOutset.getBottomUnit()); assertEquals(CssLengthUnit.EX, borderImageOutset.getLeftUnit()); borderImageOutset.setLeft(55F, CssLengthUnit.PT); assertEquals("5.0ch 10.0cm 15.0em 55.0pt", borderImageOutset.getCssValue()); assertEquals(CssLengthUnit.PT, borderImageOutset.getLeftUnit()); }