Package com.volantis.shared.metadata.type.immutable

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


        final Object otherList = doRoundTrip(list);
        assertEquals(list, otherList);
    }

    public void testSetWithMemberTypeConstraintString() throws Exception {
        final ImmutableSetType setType = (ImmutableSetType) unmarshall(
            getResourceAsString("res/set-with-member-type-constraint-string.xml"),
            ImmutableSetTypeImpl.class);

        // check the created object
        final MetaDataType memberType =
            setType.getMemberTypeConstraint().getMemberType();
        assertTrue(memberType instanceof StringType);

        final Object otherSetType = doRoundTrip(setType);
        assertEquals(setType, otherSetType);
    }
View Full Code Here


        final Object otherSetType = doRoundTrip(setType);
        assertEquals(setType, otherSetType);
    }

    public void testSeWithMemberTypeConstraintBoolean() throws Exception {
        final ImmutableSetType setType = (ImmutableSetType) unmarshall(
            getResourceAsString("res/set-with-member-type-constraint-boolean.xml"),
            ImmutableSetTypeImpl.class);

        // check the created object
        final MetaDataType memberType =
            setType.getMemberTypeConstraint().getMemberType();
        assertTrue(memberType instanceof BooleanType);

        final Object otherSetType = doRoundTrip(setType);
        assertEquals(setType, otherSetType);
    }
View Full Code Here

TOP

Related Classes of com.volantis.shared.metadata.type.immutable.ImmutableSetType

Copyright © 2018 www.massapicom. 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.