Examples of AlbumUni_1_1_1_M


Examples of com.impetus.kundera.entity.album.AlbumUni_1_1_1_M

    public void test_1_1_1_M()
    {
        FlushManager flushManager = new FlushManager();
        PhotographerUni_1_1_1_M a = new PhotographerUni_1_1_1_M();
        a.setPhotographerId(1);
        AlbumUni_1_1_1_M b = new AlbumUni_1_1_1_M();
        b.setAlbumId("b1");
        PhotoUni_1_1_1_M c1 = new PhotoUni_1_1_1_M();
        c1.setPhotoId("c1");
        PhotoUni_1_1_1_M c2 = new PhotoUni_1_1_1_M();
        c2.setPhotoId("c2");
        PhotoUni_1_1_1_M c3 = new PhotoUni_1_1_1_M();
        c3.setPhotoId("c3");
        a.setAlbum(b);
        b.addPhoto(c1);
        b.addPhoto(c2);
        b.addPhoto(c3);

        ObjectGraph graph = graphBuilder.getObjectGraph(a, null);
        pc.getMainCache().addGraphToCache(graph, pc);

        markAllNodeAsDirty();
View Full Code Here

Examples of com.impetus.kundera.tests.crossdatastore.pickr.entities.album.AlbumUni_1_1_1_M

        Assert.assertNotNull(p);
        Assert.assertEquals(1, p.getPhotographerId());
        Assert.assertEquals("Amresh", p.getPhotographerName());

        Assert.assertNotNull(p.getAlbum());
        AlbumUni_1_1_1_M album = p.getAlbum();
        Assert.assertNotNull(album);
        Assert.assertTrue(album.getAlbumId().equals("album_1"));
        Assert.assertEquals("My Phuket Vacation", album.getAlbumName());
        Assert.assertEquals("Went Phuket with friends", album.getAlbumDescription());

        List<PhotoUni_1_1_1_M> albumPhotos = album.getPhotos();
        Assert.assertNotNull(albumPhotos);
        Assert.assertFalse(albumPhotos.isEmpty());
        Assert.assertEquals(3, albumPhotos.size());

        PhotoUni_1_1_1_M photo1 = albumPhotos.get(0);
View Full Code Here

Examples of com.impetus.kundera.tests.crossdatastore.pickr.entities.album.AlbumUni_1_1_1_M

        Assert.assertNotNull(p);
        Assert.assertEquals(1, p.getPhotographerId());
        Assert.assertEquals("Vivek", p.getPhotographerName());

        Assert.assertNotNull(p.getAlbum());
        AlbumUni_1_1_1_M album = p.getAlbum();
        Assert.assertNotNull(album);
        Assert.assertTrue(album.getAlbumId().equals("album_1"));
        Assert.assertEquals("My Phuket Vacation", album.getAlbumName());
        Assert.assertEquals("Went Phuket with friends", album.getAlbumDescription());

        List<PhotoUni_1_1_1_M> albumPhotos = album.getPhotos();
        Assert.assertNotNull(albumPhotos);
        Assert.assertFalse(albumPhotos.isEmpty());
        Assert.assertEquals(3, albumPhotos.size());

        PhotoUni_1_1_1_M photo1 = albumPhotos.get(0);
View Full Code Here

Examples of com.impetus.kundera.tests.crossdatastore.pickr.entities.album.AlbumUni_1_1_1_M

    {
        PhotographerUni_1_1_1_M p = new PhotographerUni_1_1_1_M();
        p.setPhotographerId(photographerId);
        p.setPhotographerName("Amresh");

        AlbumUni_1_1_1_M album = new AlbumUni_1_1_1_M("album_1", "My Phuket Vacation", "Went Phuket with friends");

        album.addPhoto(new PhotoUni_1_1_1_M("photo_1", "One beach", "On beach with friends"));
        album.addPhoto(new PhotoUni_1_1_1_M("photo_2", "In Hotel", "Chilling out in room"));
        album.addPhoto(new PhotoUni_1_1_1_M("photo_3", "At Airport", "So tired"));

        p.setAlbum(album);

        return p;
    }
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.