Examples of AlbumUni_M_M_M_M


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

        PhotographerUni_M_M_M_M a1 = new PhotographerUni_M_M_M_M();
        a1.setPhotographerId(1);
        PhotographerUni_M_M_M_M a2 = new PhotographerUni_M_M_M_M();
        a2.setPhotographerId(2);

        AlbumUni_M_M_M_M b1 = new AlbumUni_M_M_M_M();
        b1.setAlbumId("b1");
        AlbumUni_M_M_M_M b2 = new AlbumUni_M_M_M_M();
        b2.setAlbumId("b2");
        AlbumUni_M_M_M_M b3 = new AlbumUni_M_M_M_M();
        b3.setAlbumId("b3");

        PhotoUni_M_M_M_M c1 = new PhotoUni_M_M_M_M();
        c1.setPhotoId("c1");
        PhotoUni_M_M_M_M c2 = new PhotoUni_M_M_M_M();
        c2.setPhotoId("c2");
        PhotoUni_M_M_M_M c3 = new PhotoUni_M_M_M_M();
        c3.setPhotoId("c3");
        PhotoUni_M_M_M_M c4 = new PhotoUni_M_M_M_M();
        c4.setPhotoId("c4");

        b1.addPhoto(c1);
        b1.addPhoto(c2);
        b2.addPhoto(c2);
        b2.addPhoto(c3);
        b3.addPhoto(c3);
        b3.addPhoto(c4);
        a1.addAlbum(b1);
        a1.addAlbum(b2);

        ObjectGraph graph1 = graphBuilder.getObjectGraph(a1, null);
View Full Code Here

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

        // Photographer 2
        PhotographerUni_M_M_M_M p2 = new PhotographerUni_M_M_M_M();
        p2.setPhotographerId(2);
        p2.setPhotographerName("Vivek");

        AlbumUni_M_M_M_M album1 = new AlbumUni_M_M_M_M("album_1", "My Phuket Vacation", "Went Phuket with friends");
        AlbumUni_M_M_M_M album2 = new AlbumUni_M_M_M_M("album_2", "My Shimla Vacation", "Went Shimla with friends");
        AlbumUni_M_M_M_M album3 = new AlbumUni_M_M_M_M("album_3", "My Zurik Vacation", "Went Zurik with friends");

        PhotoUni_M_M_M_M photo1 = new PhotoUni_M_M_M_M("photo_1", "One beach", "On beach with friends");
        PhotoUni_M_M_M_M photo2 = new PhotoUni_M_M_M_M("photo_2", "In Hotel", "Chilling out in room");
        PhotoUni_M_M_M_M photo3 = new PhotoUni_M_M_M_M("photo_3", "At Airport", "So tired");
        PhotoUni_M_M_M_M photo4 = new PhotoUni_M_M_M_M("photo_4", "In Space", "I am flying");

        album1.addPhoto(photo1);
        album1.addPhoto(photo2);
        album2.addPhoto(photo2);
        album2.addPhoto(photo3);
        album3.addPhoto(photo3);
        album3.addPhoto(photo4);

        p1.addAlbum(album1);
        p1.addAlbum(album2);

        p2.addAlbum(album2);
View Full Code Here

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

            Assert.assertNotNull(p.getAlbums());
            Assert.assertFalse(p.getAlbums().isEmpty());
            Assert.assertEquals(2, p.getAlbums().size());

            AlbumUni_M_M_M_M album1 = p.getAlbums().get(0);
            Assert.assertNotNull(album1);
            Assert.assertTrue(album1.getAlbumId().startsWith("album_"));

            Assert.assertNotNull(album1.getPhotos());
            Assert.assertFalse(album1.getPhotos().isEmpty());
            Assert.assertEquals(2, album1.getPhotos().size());

            AlbumUni_M_M_M_M album2 = p.getAlbums().get(1);
            Assert.assertNotNull(album2);
            Assert.assertTrue(album2.getAlbumId().startsWith("album_"));
            Assert.assertNotNull(album2.getPhotos());
            Assert.assertFalse(album2.getPhotos().isEmpty());
            Assert.assertEquals(2, album2.getPhotos().size());

        }
        else if (photographerId == 2)
        {
            Assert.assertNotNull(p);
            Assert.assertEquals(2, p.getPhotographerId());
            Assert.assertEquals("Vivek", p.getPhotographerName());

            Assert.assertNotNull(p.getAlbums());
            Assert.assertFalse(p.getAlbums().isEmpty());
            Assert.assertEquals(2, p.getAlbums().size());

            AlbumUni_M_M_M_M album1 = p.getAlbums().get(0);
            Assert.assertNotNull(album1);
            Assert.assertTrue(album1.getAlbumId().startsWith("album_"));

            Assert.assertNotNull(album1.getPhotos());
            Assert.assertFalse(album1.getPhotos().isEmpty());
            Assert.assertEquals(2, album1.getPhotos().size());

            AlbumUni_M_M_M_M album2 = p.getAlbums().get(1);
            Assert.assertNotNull(album2);
            Assert.assertTrue(album2.getAlbumId().startsWith("album_"));
            Assert.assertNotNull(album2.getPhotos());
            Assert.assertFalse(album2.getPhotos().isEmpty());
            Assert.assertEquals(2, album2.getPhotos().size());

        }
        else
        {
            Assert.fail("Invalid Photographer ID: " + photographerId);
View Full Code Here

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

            Assert.assertNotNull(p.getAlbums());
            Assert.assertFalse(p.getAlbums().isEmpty());
            Assert.assertEquals(2, p.getAlbums().size());

            AlbumUni_M_M_M_M album1 = p.getAlbums().get(0);
            Assert.assertNotNull(album1);
            Assert.assertTrue(album1.getAlbumId().startsWith("album_"));

            Assert.assertNotNull(album1.getPhotos());
            Assert.assertFalse(album1.getPhotos().isEmpty());
            Assert.assertEquals(2, album1.getPhotos().size());

            AlbumUni_M_M_M_M album2 = p.getAlbums().get(1);
            Assert.assertNotNull(album2);
            Assert.assertTrue(album2.getAlbumId().startsWith("album_"));
            Assert.assertNotNull(album2.getPhotos());
            Assert.assertFalse(album2.getPhotos().isEmpty());
            Assert.assertEquals(2, album2.getPhotos().size());

        }
        else if (photographerId == 2)
        {
            Assert.assertNotNull(p);
            Assert.assertEquals(2, p.getPhotographerId());
            Assert.assertEquals("Vivek2", p.getPhotographerName());

            Assert.assertNotNull(p.getAlbums());
            Assert.assertFalse(p.getAlbums().isEmpty());
            Assert.assertEquals(2, p.getAlbums().size());

            AlbumUni_M_M_M_M album1 = p.getAlbums().get(0);
            Assert.assertNotNull(album1);
            Assert.assertTrue(album1.getAlbumId().startsWith("album_"));

            Assert.assertNotNull(album1.getPhotos());
            Assert.assertFalse(album1.getPhotos().isEmpty());
            Assert.assertEquals(2, album1.getPhotos().size());

            AlbumUni_M_M_M_M album2 = p.getAlbums().get(1);
            Assert.assertNotNull(album2);
            Assert.assertTrue(album2.getAlbumId().startsWith("album_"));
            Assert.assertNotNull(album2.getPhotos());
            Assert.assertFalse(album2.getPhotos().isEmpty());
            Assert.assertEquals(2, album2.getPhotos().size());

        }
        else
        {
            Assert.fail("Invalid Photographer ID: " + photographerId);
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.