BorderTopWidth extends AbstractCssProperty<BorderTopWidth> { public CssLengthUnit getUnit() { return cssLengthUnit; } BorderTopWidth();  BorderTopWidth(final String cssValue);  BorderTopWidth(final BorderTopWidth borderTopWidth);  BorderTopWidth(final float percent);  BorderTopWidth(final float value,
            final CssLengthUnit cssLengthUnit); BorderTopWidth setValue(final float value,
            final CssLengthUnit cssLengthUnit); void setPercent(final float percent); @Override String getCssName(); @Override String getCssValue(); @Override String toString(); Float getValue(); CssLengthUnit getUnit(); @Override BorderTopWidth setCssValue(final String cssValue); void setAsInitial(); void setAsInherit(); void setAsMedium(); void setAsThin(); void setAsThick(); static boolean isValid(final String cssValue); static final String MEDIUM; static final String THIN; static final String THICK; static final String INITIAL; static final String INHERIT; }
@Test public void testGetUnit() { BorderTopWidth borderTopWidth = new BorderTopWidth(); borderTopWidth.setPercent(75); assertEquals(CssLengthUnit.PER, borderTopWidth.getUnit()); }