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