BorderImageOutset extends AbstractCssProperty<BorderImageOutset> { public void setAsInherit() { setCssValue(INHERIT); } 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 testSetAsInherit() { BorderImageOutset borderImageOutset = new BorderImageOutset(); borderImageOutset.setCssValue("55%"); assertEquals("55.0%", borderImageOutset.getCssValue()); assertNotNull(borderImageOutset.getTop()); assertNotNull(borderImageOutset.getRight()); assertNotNull(borderImageOutset.getBottom()); assertNotNull(borderImageOutset.getLeft()); assertTrue(55F == borderImageOutset.getTop()); assertTrue(55F == borderImageOutset.getRight()); assertTrue(55F == borderImageOutset.getBottom()); assertTrue(55F == borderImageOutset.getLeft()); assertNotNull(borderImageOutset.getTopUnit()); assertNotNull(borderImageOutset.getRightUnit()); assertNotNull(borderImageOutset.getBottomUnit()); assertNotNull(borderImageOutset.getLeftUnit()); assertEquals(CssLengthUnit.PER, borderImageOutset.getTopUnit()); assertEquals(CssLengthUnit.PER, borderImageOutset.getRightUnit()); assertEquals(CssLengthUnit.PER, borderImageOutset.getBottomUnit()); assertEquals(CssLengthUnit.PER, borderImageOutset.getLeftUnit()); borderImageOutset.setAsInherit(); assertNull(borderImageOutset.getTop()); assertNull(borderImageOutset.getRight()); assertNull(borderImageOutset.getBottom()); assertNull(borderImageOutset.getLeft()); assertNull(borderImageOutset.getTopUnit()); assertNull(borderImageOutset.getRightUnit()); assertNull(borderImageOutset.getBottomUnit()); assertNull(borderImageOutset.getLeftUnit()); }