Examples of ImmutableNumberType


Examples of com.volantis.shared.metadata.type.immutable.ImmutableNumberType

        assertEquals("Street", street.getValueAsString());
        final ImmutableStringValue avenue =
            (ImmutableStringValue) constraintIter.next();
        assertEquals("Avenue", avenue.getValueAsString());

        final ImmutableNumberType houseNumberType =
            (ImmutableNumberType) houseNumberDef.getType();
        final ImmutableNumberSubTypeConstraint subTypeConstraint =
            houseNumberType.getNumberSubTypeConstraint();
        assertEquals(Integer.class, subTypeConstraint.getNumberSubType());
        final ImmutableMinimumValueConstraint minimumValueConstraint =
            houseNumberType.getMinimumValueConstraint();
        assertEquals(new Integer(0), minimumValueConstraint.getLimitAsNumber());

        final Object otherAddress = doRoundTrip(rootType);
        assertEquals(rootType, otherAddress);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.