Examples of ImmutableEnumeratedConstraintImpl


Examples of com.volantis.shared.metadata.impl.type.constraint.ImmutableEnumeratedConstraintImpl

        final Object otherConstraint = doRoundTrip(constraint);
        assertEquals(constraint, otherConstraint);
    }

    public void testEnumeratedConstraint() throws Exception {
        final ImmutableEnumeratedConstraintImpl constraint =
            (ImmutableEnumeratedConstraintImpl) unmarshall(
                getResourceAsString("res/enumerated-constraint-string.xml"),
                ImmutableEnumeratedConstraintImpl.class);

        // check the created object
        final List enumeratedValues = constraint.getEnumeratedValues();
        assertEquals(3, enumeratedValues.size());
        assertEquals("one",
            ((StringValue) enumeratedValues.get(0)).getAsString());
        assertEquals("two",
            ((StringValue) enumeratedValues.get(1)).getAsString());
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.