Package org.apache.art

Examples of org.apache.art.MixedPersistenceStrategy2


    public void testConflictingField2() throws Exception {
        deleteTestData();
        createTestData("testConflictingField");

        DataContext c = createDataContext();
        MixedPersistenceStrategy2 detail1 = DataObjectUtils.objectForPK(
                c,
                MixedPersistenceStrategy2.class,
                1);

        MixedPersistenceStrategy2 detail2 = DataObjectUtils.objectForPK(
                c,
                MixedPersistenceStrategy2.class,
                2);

        // resolve master (this is where CAY-582 exception happens)
        assertEquals("n1", detail1.getMaster().getName());

        assertEquals(2, detail2.getMaster().getDetails().size());
        assertTrue(detail2.getMaster().getDetails() instanceof ValueHolder);
    }
View Full Code Here

TOP

Related Classes of org.apache.art.MixedPersistenceStrategy2

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.