Package com.impetus.kundera.tests.crossdatastore.pickr.entities.photographer

Examples of com.impetus.kundera.tests.crossdatastore.pickr.entities.photographer.PhotographerUni_1_M_M_M


    }

    @Override
    public void addPhotographer()
    {
        PhotographerUni_1_M_M_M p = preparePhotographer();
        pickr.addPhotographer(p);
    }
View Full Code Here


    }

    @Override
    public void getPhotographer()
    {
        PhotographerUni_1_M_M_M p = (PhotographerUni_1_M_M_M) pickr.getPhotographer(PhotographerUni_1_M_M_M.class,
                photographerId);
        assertPhotographer(p);
    }
View Full Code Here

    }

    @Override
    public void updatePhotographer()
    {
        PhotographerUni_1_M_M_M p = (PhotographerUni_1_M_M_M) pickr.getPhotographer(PhotographerUni_1_M_M_M.class,
                photographerId);
        assertPhotographer(p);

        p.setPhotographerName("Vivek");

        pickr.mergePhotographer(p);

        PhotographerUni_1_M_M_M p2 = (PhotographerUni_1_M_M_M) pickr.getPhotographer(PhotographerUni_1_M_M_M.class,
                photographerId);
        assertModifiedPhotographer(p2);
    }
View Full Code Here

    @Override
    public void getAllPhotographers()
    {
        List<Object> ps = pickr.getAllPhotographers(PhotographerUni_1_M_M_M.class.getSimpleName());
        PhotographerUni_1_M_M_M p = (PhotographerUni_1_M_M_M) ps.get(0);

        assertModifiedPhotographer(p);

    }
View Full Code Here

    }

    @Override
    public void deletePhotographer()
    {
        PhotographerUni_1_M_M_M p = (PhotographerUni_1_M_M_M) pickr.getPhotographer(PhotographerUni_1_M_M_M.class,
                photographerId);
        assertModifiedPhotographer(p);
        pickr.deletePhotographer(p);
        PhotographerUni_1_M_M_M p2 = (PhotographerUni_1_M_M_M) pickr.getPhotographer(PhotographerUni_1_M_M_M.class,
                photographerId);
        Assert.assertNull(p2);

    }
View Full Code Here

    }

    private PhotographerUni_1_M_M_M preparePhotographer()
    {
        PhotographerUni_1_M_M_M p = new PhotographerUni_1_M_M_M();
        p.setPhotographerId(photographerId);
        p.setPhotographerName("Amresh");

        AlbumUni_1_M_M_M album1 = new AlbumUni_1_M_M_M("album_1", "My Phuket Vacation", "Went Phuket with friends");
        AlbumUni_1_M_M_M album2 = new AlbumUni_1_M_M_M("album_2", "Office Pics", "Annual office party photos");

        PhotoUni_1_M_M_M photo1 = new PhotoUni_1_M_M_M("photo_1", "One beach", "On beach with friends");
        PhotoUni_1_M_M_M photo2 = new PhotoUni_1_M_M_M("photo_2", "In Hotel", "Chilling out in room");
        PhotoUni_1_M_M_M photo3 = new PhotoUni_1_M_M_M("photo_3", "At Airport", "So tired");
        PhotoUni_1_M_M_M photo4 = new PhotoUni_1_M_M_M("photo_4", "Office Team event", "Shot at Fun park");
        PhotoUni_1_M_M_M photo5 = new PhotoUni_1_M_M_M("photo_5", "My Team", "My team is the best");

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

        album2.addPhoto(photo2);
        album2.addPhoto(photo3);
        album2.addPhoto(photo4);
        album2.addPhoto(photo5);

        p.addAlbum(album1);
        p.addAlbum(album2);

        return p;

    }
View Full Code Here

TOP

Related Classes of com.impetus.kundera.tests.crossdatastore.pickr.entities.photographer.PhotographerUni_1_M_M_M

Copyright © 2018 www.massapicom. 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.