Examples of AlbumBi_M_1_1_M


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

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

            Assert.assertNotNull(p.getAlbum());
            AlbumBi_M_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<PhotographerBi_M_1_1_M> ps = album.getPhotographers();
            Assert.assertNotNull(ps);
            Assert.assertFalse(ps.isEmpty());
            Assert.assertEquals(2, ps.size());

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

            PhotoBi_M_1_1_M photo1 = albumPhotos.get(0);
            PhotoBi_M_1_1_M photo2 = albumPhotos.get(1);
            PhotoBi_M_1_1_M photo3 = albumPhotos.get(2);

            Assert.assertNotNull(photo1);
            Assert.assertTrue(photo1.getPhotoId().startsWith("photo_"));
            Assert.assertNotNull(photo2);
            Assert.assertTrue(photo2.getPhotoId().startsWith("photo_"));
            Assert.assertNotNull(photo3);
            Assert.assertTrue(photo3.getPhotoId().startsWith("photo_"));

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

            Assert.assertNotNull(p.getAlbum());
            AlbumBi_M_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<PhotographerBi_M_1_1_M> ps = album.getPhotographers();
            Assert.assertNotNull(ps);
            Assert.assertFalse(ps.isEmpty());
            Assert.assertEquals(2, ps.size());

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

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

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

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

            Assert.assertNotNull(p.getAlbum());
            AlbumBi_M_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<PhotographerBi_M_1_1_M> ps = album.getPhotographers();
            Assert.assertNotNull(ps);
            Assert.assertFalse(ps.isEmpty());
            Assert.assertEquals(2, ps.size());

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

            PhotoBi_M_1_1_M photo1 = albumPhotos.get(0);
            PhotoBi_M_1_1_M photo2 = albumPhotos.get(1);
            PhotoBi_M_1_1_M photo3 = albumPhotos.get(2);

            Assert.assertNotNull(photo1);
            Assert.assertTrue(photo1.getPhotoId().startsWith("photo_"));
            Assert.assertNotNull(photo2);
            Assert.assertTrue(photo2.getPhotoId().startsWith("photo_"));
            Assert.assertNotNull(photo3);
            Assert.assertTrue(photo3.getPhotoId().startsWith("photo_"));

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

            Assert.assertNotNull(p.getAlbum());
            AlbumBi_M_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<PhotographerBi_M_1_1_M> ps = album.getPhotographers();
            Assert.assertNotNull(ps);
            Assert.assertFalse(ps.isEmpty());
            Assert.assertEquals(2, ps.size());

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

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

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

        // Photographer 1
        PhotographerBi_M_1_1_M p1 = new PhotographerBi_M_1_1_M();
        p1.setPhotographerId(1);
        p1.setPhotographerName("Amresh");

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

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

        p1.setAlbum(album);

        // Photographer 2
        PhotographerBi_M_1_1_M p2 = new PhotographerBi_M_1_1_M();
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.