Flex extends AbstractCssProperty<Flex> implements StateChangeInformer<CssProperty> { @Override public String getCssValue() { return cssValue; } Flex();  Flex(final String cssValue);  Flex(final Flex flex); @Override String getCssName(); @Override String getCssValue(); @Override String toString(); @Override Flex setCssValue(final String cssValue); static boolean isValid(final String cssValue); void setAsInitial(); void setAsInherit(); void setAsAuto(); FlexBasis getFlexBasis(); FlexShrink getFlexShrink(); FlexGrow getFlexGrow(); Flex setFlexGrow(final FlexGrow flexGrow); Flex setFlexShrink(final FlexShrink flexShrink); Flex setFlexBasis(final FlexBasis flexBasis); @Override void stateChanged(final CssProperty stateChangedObject); static final String INITIAL; static final String INHERIT; static final String AUTO; }
@Test public void testFlexString() { final Flex flex = new Flex("2 5 25px"); assertEquals("2.0 5.0 25px", flex.getCssValue()); }
@Test public void testFlexFlex() { final Flex flex = new Flex(new Flex("2 5 25px")); assertEquals("2.0 5.0 25px", flex.getCssValue()); }
@Test public void testGetCssValue() { final Flex flex = new Flex(new Flex("2 5 25px")); assertEquals("2.0 5.0 25px", flex.getCssValue()); }