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

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


    }

    @Override
    protected void getPhotographer()
    {
        PhotographerUni_M_1_1_M p1 = (PhotographerUni_M_1_1_M) pickr.getPhotographer(PhotographerUni_M_1_1_M.class, 1);
        assertPhotographer(p1, 1);

        PhotographerUni_M_1_1_M p2 = (PhotographerUni_M_1_1_M) pickr.getPhotographer(PhotographerUni_M_1_1_M.class, 2);
        assertPhotographer(p2, 2);
    }
View Full Code Here


    }

    @Override
    protected void updatePhotographer()
    {
        PhotographerUni_M_1_1_M p1 = (PhotographerUni_M_1_1_M) pickr.getPhotographer(PhotographerUni_M_1_1_M.class, 1);
        assertPhotographer(p1, 1);
        p1.setPhotographerName("Amresh2");

        pickr.mergePhotographer(p1);

        PhotographerUni_M_1_1_M p1Modified = (PhotographerUni_M_1_1_M) pickr.getPhotographer(
                PhotographerUni_M_1_1_M.class, 1);
        assertModifiedPhotographer(p1Modified, 1);

        PhotographerUni_M_1_1_M p2 = (PhotographerUni_M_1_1_M) pickr.getPhotographer(PhotographerUni_M_1_1_M.class, 2);
        assertPhotographer(p2, 2);

        p2.setPhotographerName("Vivek2");
        pickr.mergePhotographer(p2);

        PhotographerUni_M_1_1_M p2Modified = (PhotographerUni_M_1_1_M) pickr.getPhotographer(
                PhotographerUni_M_1_1_M.class, 2);
        assertModifiedPhotographer(p2Modified, 2);
    }
View Full Code Here

    {
        List<Object> ps = pickr.getAllPhotographers(PhotographerUni_M_1_1_M.class.getSimpleName());

        for (Object p : ps)
        {
            PhotographerUni_M_1_1_M pp = (PhotographerUni_M_1_1_M) p;
            Assert.assertNotNull(pp);
            assertModifiedPhotographer(pp, pp.getPhotographerId());
        }

    }
View Full Code Here

    }

    @Override
    protected void deletePhotographer()
    {
        PhotographerUni_M_1_1_M p1 = (PhotographerUni_M_1_1_M) pickr.getPhotographer(PhotographerUni_M_1_1_M.class, 1);
        assertModifiedPhotographer(p1, 1);

        pickr.deletePhotographer(p1);

        PhotographerUni_M_1_1_M p1AfterDeletion = (PhotographerUni_M_1_1_M) pickr.getPhotographer(
                PhotographerUni_M_1_1_M.class, 1);
        Assert.assertNull(p1AfterDeletion);

        PhotographerUni_M_1_1_M p2 = (PhotographerUni_M_1_1_M) pickr.getPhotographer(PhotographerUni_M_1_1_M.class, 2);
        Assert.assertNotNull(p2);

        pickr.deletePhotographer(p2);

        PhotographerUni_M_1_1_M p2AfterDeletion = (PhotographerUni_M_1_1_M) pickr.getPhotographer(
                PhotographerUni_M_1_1_M.class, 2);
        Assert.assertNull(p2AfterDeletion);

    }
View Full Code Here

    private List<PhotographerUni_M_1_1_M> populatePhotographers()
    {
        List<PhotographerUni_M_1_1_M> photographers = new ArrayList<PhotographerUni_M_1_1_M>();

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

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

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

        p1.setAlbum(album);

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

        p2.setAlbum(album);

        photographers.add(p1);
        photographers.add(p2);

        return photographers;
View Full Code Here

TOP

Related Classes of com.impetus.kundera.tests.crossdatastore.pickr.entities.photographer.PhotographerUni_M_1_1_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.