Examples of PhotographerBi_M_1_1_M


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

    }

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

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

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

    }

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

        pickr.mergePhotographer(p1);

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

        PhotographerBi_M_1_1_M p2 = (PhotographerBi_M_1_1_M) pickr.getPhotographer(PhotographerBi_M_1_1_M.class, 2);
        assertPhotographer(p2, 2);
        p2.setPhotographerName("Vivek2");

        pickr.mergePhotographer(p2);

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

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

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

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

    }
View Full Code Here

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

    }

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

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

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

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

    }
View Full Code Here

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

    private List<PhotographerBi_M_1_1_M> populatePhotographers()
    {
        List<PhotographerBi_M_1_1_M> photographers = new ArrayList<PhotographerBi_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();
        p2.setPhotographerId(2);
        p2.setPhotographerName("Vivek");

        p2.setAlbum(album);

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

        return photographers;
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.