Package org.apache.cayenne.testdo.testmap

Examples of org.apache.cayenne.testdo.testmap.Artist.removeFromPaintingArray()


        Artist a2 = (Artist) Cayenne.objectForQuery(context2, new SelectQuery(
                Artist.class));
        Painting p2 = a2.getPaintingArray().get(0);

        // *** TESTING THIS ***
        a2.removeFromPaintingArray(p2);

        // test before save
        assertEquals(0, a2.getPaintingArray().size());
        assertNull(p2.getToGallery());

View Full Code Here


                Artist.class));
        assertEquals(2, a2.getPaintingArray().size());
        Painting p2 = a2.getPaintingArray().get(0);

        // *** TESTING THIS ***
        a2.removeFromPaintingArray(p2);

        // test before save
        assertEquals(1, a2.getPaintingArray().size());
        assertNull(p2.getToArtist());

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.