Top extends AbstractCssProperty<Top> { @Override public String getCssValue() { return cssValue; } Top();  Top(final String cssValue);  Top(final Top top);  Top(final float percent);  Top(final float value, final CssLengthUnit cssLengthUnit); Top 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 Top setCssValue(final String cssValue); void setAsInitial(); void setAsInherit(); void setAsAuto(); static boolean isValid(final String cssValue); static final String AUTO; static final String INITIAL; static final String INHERIT; }
@Test public void testTopString() { { Top top = new Top(Top.INITIAL); assertEquals(Top.INITIAL, top.getCssValue()); } { Top top = new Top("50px"); assertEquals("50px", top.getCssValue()); } }
@Test public void testTopTop() { Top top = new Top("50px"); Top top1 = new Top(top); assertEquals("50px", top1.getCssValue()); }
@Test public void testTopFloat() { Top top = new Top(75); assertEquals("75.0%", top.getCssValue()); }
@Test public void testGetCssValue() { Top top = new Top(); top.setAsInherit(); assertEquals(Top.INHERIT, top.getCssValue()); top.setAsInitial(); assertEquals(Top.INITIAL, top.getCssValue()); }