Assert.assertNotNull(p);
Assert.assertEquals(1, p.getPhotographerId());
Assert.assertEquals("Amresh2", p.getPhotographerName());
Assert.assertNotNull(p.getAlbum());
AlbumBi_M_1_M_1 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());
Assert.assertNotNull(album.getPhotographers());
Assert.assertEquals(2, album.getPhotographers().size());
Assert.assertNotNull(album.getPhotographers().get(0));
Assert.assertNotNull(album.getPhotographers().get(1));
PhotoBi_M_1_M_1 albumPhoto = album.getPhoto();
Assert.assertNotNull(albumPhoto);
Assert.assertNotNull(albumPhoto);
Assert.assertTrue(albumPhoto.getPhotoId().equals("photo_1"));
Assert.assertNotNull(albumPhoto.getAlbums());
Assert.assertEquals(2, albumPhoto.getAlbums().size());
Assert.assertNotNull(albumPhoto.getAlbums().get(0));
Assert.assertNotNull(albumPhoto.getAlbums().get(1));
}
else if (photographerId == 2)
{
Assert.assertNotNull(p);
Assert.assertEquals(2, p.getPhotographerId());
Assert.assertEquals("Vivek2", p.getPhotographerName());
Assert.assertNotNull(p.getAlbum());
AlbumBi_M_1_M_1 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());
Assert.assertNotNull(album.getPhotographers());
Assert.assertEquals(2, album.getPhotographers().size());
Assert.assertNotNull(album.getPhotographers().get(0));
Assert.assertNotNull(album.getPhotographers().get(1));
PhotoBi_M_1_M_1 albumPhoto = album.getPhoto();
Assert.assertNotNull(albumPhoto);
Assert.assertNotNull(albumPhoto);
Assert.assertTrue(albumPhoto.getPhotoId().equals("photo_1"));
Assert.assertNotNull(albumPhoto.getAlbums());
Assert.assertEquals(2, albumPhoto.getAlbums().size());
Assert.assertNotNull(albumPhoto.getAlbums().get(0));
Assert.assertNotNull(albumPhoto.getAlbums().get(1));
}
else if (photographerId == 3)
{
Assert.assertNotNull(p);
Assert.assertEquals(3, p.getPhotographerId());
Assert.assertEquals("Kuldeep2", p.getPhotographerName());
Assert.assertNotNull(p.getAlbum());
AlbumBi_M_1_M_1 album = p.getAlbum();
Assert.assertNotNull(album);
Assert.assertTrue(album.getAlbumId().equals("album_2"));
Assert.assertEquals("My Shimla Vacation", album.getAlbumName());
Assert.assertEquals("Went Shimla with friends", album.getAlbumDescription());
Assert.assertNotNull(album.getPhotographers());
Assert.assertEquals(2, album.getPhotographers().size());
Assert.assertNotNull(album.getPhotographers().get(0));
Assert.assertNotNull(album.getPhotographers().get(1));
PhotoBi_M_1_M_1 albumPhoto = album.getPhoto();
Assert.assertNotNull(albumPhoto);
Assert.assertNotNull(albumPhoto);
Assert.assertTrue(albumPhoto.getPhotoId().equals("photo_1"));
Assert.assertNotNull(albumPhoto.getAlbums());
Assert.assertEquals(2, albumPhoto.getAlbums().size());
Assert.assertNotNull(albumPhoto.getAlbums().get(0));
Assert.assertNotNull(albumPhoto.getAlbums().get(1));
}
else if (photographerId == 4)
{
Assert.assertNotNull(p);
Assert.assertEquals(4, p.getPhotographerId());
Assert.assertEquals("VivekS2", p.getPhotographerName());
Assert.assertNotNull(p.getAlbum());
AlbumBi_M_1_M_1 album = p.getAlbum();
Assert.assertNotNull(album);
Assert.assertTrue(album.getAlbumId().equals("album_2"));
Assert.assertEquals("My Shimla Vacation", album.getAlbumName());
Assert.assertEquals("Went Shimla with friends", album.getAlbumDescription());
Assert.assertNotNull(album.getPhotographers());
Assert.assertEquals(2, album.getPhotographers().size());
Assert.assertNotNull(album.getPhotographers().get(0));
Assert.assertNotNull(album.getPhotographers().get(1));
PhotoBi_M_1_M_1 albumPhoto = album.getPhoto();
Assert.assertNotNull(albumPhoto);
Assert.assertNotNull(albumPhoto);
Assert.assertTrue(albumPhoto.getPhotoId().equals("photo_1"));