Package org.apache.cayenne.access.types

Examples of org.apache.cayenne.access.types.MockEnumHolder


        PropertyUtils.setProperty(o1, "intField", null);
        assertEquals(0, o1.getIntField());
    }

    public void testSetConvertedEnum() {
        MockEnumHolder o1 = new MockEnumHolder();

        // String to Enum
        PropertyUtils.setProperty(o1, "mockEnum", "b");
        assertSame(MockEnum.b, o1.getMockEnum());

        // check that regular converters still work
        PropertyUtils.setProperty(o1, "number", "445");
        assertEquals(445, o1.getNumber());
    }
View Full Code Here

TOP

Related Classes of org.apache.cayenne.access.types.MockEnumHolder

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.