BorderSpacing extends AbstractCssProperty<BorderSpacing> { public CssLengthUnit getVerticalUnit() { return verticalCssLengthUnit; } BorderSpacing();  BorderSpacing(final String cssValue);  BorderSpacing(final BorderSpacing borderSpacing);  BorderSpacing(final float horizontalVerticalValue,
            final CssLengthUnit cssLengthUnit);  BorderSpacing(final float horizontalValue,
            final CssLengthUnit horizontalCssLengthUnit,
            final float verticalValue,
            final CssLengthUnit verticalCssLengthUnit); BorderSpacing setValue(final float horizontalValue,
            final CssLengthUnit horizontalCssLengthUnit,
            final float verticalValue,
            final CssLengthUnit verticalCssLengthUnit); BorderSpacing setValue(final float horizontalVerticalValue,
            final CssLengthUnit cssLengthUnit); @Override String getCssName(); @Override String getCssValue(); @Override String toString(); Float getHorizontalValue(); Float getVerticalValue(); CssLengthUnit getHorizontalUnit(); CssLengthUnit getVerticalUnit(); @Override BorderSpacing setCssValue(final String cssValue); void setAsInitial(); void setAsInherit(); static boolean isValid(final String cssValue); static final String INITIAL; static final String INHERIT; }
@Test public void testGetVerticalUnit() { BorderSpacing borderSpacing = new BorderSpacing(); borderSpacing.setValue(25, CssLengthUnit.PX, 50, CssLengthUnit.CM); assertEquals("25.0px 50.0cm", borderSpacing.getCssValue()); assertEquals(CssLengthUnit.CM, borderSpacing.getVerticalUnit()); borderSpacing.setAsInherit(); assertNull(borderSpacing.getVerticalUnit()); borderSpacing.setValue(30, CssLengthUnit.PX, 30, CssLengthUnit.PX); assertEquals("30.0px", borderSpacing.getCssValue()); assertEquals(CssLengthUnit.PX, borderSpacing.getVerticalUnit()); borderSpacing.setAsInherit(); assertNull(borderSpacing.getVerticalUnit()); }