Left extends AbstractCssProperty<Left> { @Override public String getCssValue() { return cssValue; } Left();  Left(final String cssValue);  Left(final Left left);  Left(final float percent);  Left(final float value, final CssLengthUnit cssLengthUnit); Left 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 Left 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 testLeftString() { { Left left = new Left(Left.INITIAL); assertEquals(Left.INITIAL, left.getCssValue()); } { Left left = new Left("50px"); assertEquals("50px", left.getCssValue()); } }
@Test public void testLeftLeft() { Left left = new Left("50px"); Left left1 = new Left(left); assertEquals("50px", left1.getCssValue()); }
@Test public void testLeftFloat() { Left left = new Left(75); assertEquals("75.0%", left.getCssValue()); }
@Test public void testGetCssValue() { Left left = new Left(); left.setAsInherit(); assertEquals(Left.INHERIT, left.getCssValue()); left.setAsInitial(); assertEquals(Left.INITIAL, left.getCssValue()); }