Assert.assertNotNull(p);
Assert.assertEquals(1, p.getPhotographerId());
Assert.assertEquals("Amresh2", p.getPhotographerName());
Assert.assertNotNull(p.getAlbum());
AlbumUni_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());
PhotoUni_M_1_M_1 albumPhoto = album.getPhoto();
Assert.assertNotNull(albumPhoto);
Assert.assertNotNull(albumPhoto);
Assert.assertTrue(albumPhoto.getPhotoId().equals("photo_1"));
}
else if (photographerId == 2)
{
Assert.assertNotNull(p);
Assert.assertEquals(2, p.getPhotographerId());
Assert.assertEquals("Vivek2", p.getPhotographerName());
Assert.assertNotNull(p.getAlbum());
AlbumUni_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());
PhotoUni_M_1_M_1 albumPhoto = album.getPhoto();
Assert.assertNotNull(albumPhoto);
Assert.assertNotNull(albumPhoto);
Assert.assertTrue(albumPhoto.getPhotoId().equals("photo_1"));
}
else if (photographerId == 3)
{
Assert.assertNotNull(p);
Assert.assertEquals(3, p.getPhotographerId());
Assert.assertEquals("Kuldeep2", p.getPhotographerName());
Assert.assertNotNull(p.getAlbum());
AlbumUni_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());
PhotoUni_M_1_M_1 albumPhoto = album.getPhoto();
Assert.assertNotNull(albumPhoto);
Assert.assertNotNull(albumPhoto);
Assert.assertTrue(albumPhoto.getPhotoId().equals("photo_1"));
}
else if (photographerId == 4)
{
Assert.assertNotNull(p);
Assert.assertEquals(4, p.getPhotographerId());
Assert.assertEquals("VivekS2", p.getPhotographerName());
Assert.assertNotNull(p.getAlbum());
AlbumUni_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());
PhotoUni_M_1_M_1 albumPhoto = album.getPhoto();
Assert.assertNotNull(albumPhoto);
Assert.assertNotNull(albumPhoto);
Assert.assertTrue(albumPhoto.getPhotoId().equals("photo_1"));
}