Examples of AlbumBi_M_M_1_1


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

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

            AlbumBi_M_M_1_1 album1 = p.getAlbums().get(0);
            Assert.assertNotNull(album1);
            Assert.assertTrue(album1.getAlbumId().startsWith("album_"));
            PhotoBi_M_M_1_1 photo1 = album1.getPhoto();
            Assert.assertNotNull(photo1);
            Assert.assertTrue(photo1.getPhotoId().startsWith("photo_"));

            AlbumBi_M_M_1_1 album2 = p.getAlbums().get(1);
            Assert.assertNotNull(album2);
            Assert.assertTrue(album2.getAlbumId().startsWith("album_"));
            PhotoBi_M_M_1_1 photo2 = album2.getPhoto();
            Assert.assertNotNull(photo2);
            Assert.assertTrue(photo2.getPhotoId().startsWith("photo_"));

        }
        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());

            AlbumBi_M_M_1_1 album1 = p.getAlbums().get(0);
            Assert.assertNotNull(album1);
            Assert.assertTrue(album1.getAlbumId().startsWith("album_"));
            PhotoBi_M_M_1_1 photo1 = album1.getPhoto();
            Assert.assertNotNull(photo1);
            Assert.assertTrue(photo1.getPhotoId().startsWith("photo_"));

            AlbumBi_M_M_1_1 album2 = p.getAlbums().get(1);
            Assert.assertNotNull(album2);
            Assert.assertTrue(album2.getAlbumId().startsWith("album_"));
            PhotoBi_M_M_1_1 photo2 = album2.getPhoto();
            Assert.assertNotNull(photo2);
            Assert.assertTrue(photo2.getPhotoId().startsWith("photo_"));
        }
        else
        {
View Full Code Here

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

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

            AlbumBi_M_M_1_1 album1 = p.getAlbums().get(0);
            Assert.assertNotNull(album1);
            Assert.assertTrue(album1.getAlbumId().startsWith("album_"));
            PhotoBi_M_M_1_1 photo1 = album1.getPhoto();
            Assert.assertNotNull(photo1);
            Assert.assertTrue(photo1.getPhotoId().startsWith("photo_"));

            AlbumBi_M_M_1_1 album2 = p.getAlbums().get(1);
            Assert.assertNotNull(album2);
            Assert.assertTrue(album2.getAlbumId().startsWith("album_"));
            PhotoBi_M_M_1_1 photo2 = album2.getPhoto();
            Assert.assertNotNull(photo2);
            Assert.assertTrue(photo2.getPhotoId().startsWith("photo_"));

        }
        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());

            AlbumBi_M_M_1_1 album1 = p.getAlbums().get(0);
            Assert.assertNotNull(album1);
            Assert.assertTrue(album1.getAlbumId().startsWith("album_"));
            PhotoBi_M_M_1_1 photo1 = album1.getPhoto();
            Assert.assertNotNull(photo1);
            Assert.assertTrue(photo1.getPhotoId().startsWith("photo_"));

            AlbumBi_M_M_1_1 album2 = p.getAlbums().get(1);
            Assert.assertNotNull(album2);
            Assert.assertTrue(album2.getAlbumId().startsWith("album_"));
            PhotoBi_M_M_1_1 photo2 = album2.getPhoto();
            Assert.assertNotNull(photo2);
            Assert.assertTrue(photo2.getPhotoId().startsWith("photo_"));
        }
        else
        {
View Full Code Here

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

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

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

        album1.setPhoto(new PhotoBi_M_M_1_1("photo_1", "One beach", "On beach with friends"));
        album2.setPhoto(new PhotoBi_M_M_1_1("photo_2", "In Hotel", "Chilling out in room"));
        album3.setPhoto(new PhotoBi_M_M_1_1("photo_3", "At Airport", "So tired"));

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

        p2.addAlbum(album2);
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.