BorderTopWidth extends AbstractCssProperty<BorderTopWidth> { @Override public String getCssValue() { return cssValue; } 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 testBorderTopWidthString() { { BorderTopWidth borderTopWidth = new BorderTopWidth(BorderTopWidth.INITIAL); assertEquals(BorderTopWidth.INITIAL, borderTopWidth.getCssValue()); } { BorderTopWidth borderTopWidth = new BorderTopWidth("50px"); assertEquals("50px", borderTopWidth.getCssValue()); } }
@Test public void testBorderTopWidthBorderTopWidth() { BorderTopWidth borderTopWidth = new BorderTopWidth("50px"); BorderTopWidth borderTopWidth1 = new BorderTopWidth(borderTopWidth); assertEquals("50px", borderTopWidth1.getCssValue()); }
@Test public void testBorderTopWidthFloat() { BorderTopWidth borderTopWidth = new BorderTopWidth(75); assertEquals("75.0%", borderTopWidth.getCssValue()); }
@Test public void testGetCssValue() { BorderTopWidth borderTopWidth = new BorderTopWidth(); borderTopWidth.setAsInherit(); assertEquals(BorderTopWidth.INHERIT, borderTopWidth.getCssValue()); borderTopWidth.setAsMedium(); assertEquals(BorderTopWidth.MEDIUM, borderTopWidth.getCssValue()); }