Examples of PhotographerUni_M_1_M_1


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

    }

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

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

        PhotographerUni_M_1_M_1 p3 = (PhotographerUni_M_1_M_1) pickr.getPhotographer(PhotographerUni_M_1_M_1.class, 3);
        assertPhotographer(p3, 3);

        PhotographerUni_M_1_M_1 p4 = (PhotographerUni_M_1_M_1) pickr.getPhotographer(PhotographerUni_M_1_M_1.class, 4);
        assertPhotographer(p4, 4);
    }
View Full Code Here

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

    }

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

        pickr.mergePhotographer(p1);

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

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

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

        PhotographerUni_M_1_M_1 p2Modified = (PhotographerUni_M_1_M_1) pickr.getPhotographer(
                PhotographerUni_M_1_M_1.class, 2);
        assertModifiedPhotographer(p2Modified, 2);

        PhotographerUni_M_1_M_1 p3 = (PhotographerUni_M_1_M_1) pickr.getPhotographer(PhotographerUni_M_1_M_1.class, 3);
        assertPhotographer(p3, 3);
        p3.setPhotographerName("Kuldeep2");

        pickr.mergePhotographer(p3);

        PhotographerUni_M_1_M_1 p3Modified = (PhotographerUni_M_1_M_1) pickr.getPhotographer(
                PhotographerUni_M_1_M_1.class, 3);
        assertModifiedPhotographer(p3Modified, 3);

        PhotographerUni_M_1_M_1 p4 = (PhotographerUni_M_1_M_1) pickr.getPhotographer(PhotographerUni_M_1_M_1.class, 4);
        assertPhotographer(p4, 4);

        p4.setPhotographerName("VivekS2");
        pickr.mergePhotographer(p4);

        PhotographerUni_M_1_M_1 p4Modified = (PhotographerUni_M_1_M_1) pickr.getPhotographer(
                PhotographerUni_M_1_M_1.class, 4);
        assertModifiedPhotographer(p4Modified, 4);
    }
View Full Code Here

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

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

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

    }
View Full Code Here

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

    }

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

        pickr.deletePhotographer(p1);

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

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

        pickr.deletePhotographer(p2);

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

        PhotographerUni_M_1_M_1 p3 = (PhotographerUni_M_1_M_1) pickr.getPhotographer(PhotographerUni_M_1_M_1.class, 3);
        Assert.assertNotNull(p3);

        pickr.deletePhotographer(p3);

        PhotographerUni_M_1_M_1 p3AfterDeletion = (PhotographerUni_M_1_M_1) pickr.getPhotographer(
                PhotographerUni_M_1_M_1.class, 3);
        Assert.assertNull(p3AfterDeletion);

        PhotographerUni_M_1_M_1 p4 = (PhotographerUni_M_1_M_1) pickr.getPhotographer(PhotographerUni_M_1_M_1.class, 4);
        Assert.assertNotNull(p4);

        pickr.deletePhotographer(p4);

        PhotographerUni_M_1_M_1 p4AfterDeletion = (PhotographerUni_M_1_M_1) pickr.getPhotographer(
                PhotographerUni_M_1_M_1.class, 4);
        Assert.assertNull(p4AfterDeletion);

    }
View Full Code Here

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

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

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

        AlbumUni_M_1_M_1 album1 = new AlbumUni_M_1_M_1("album_1", "My Phuket Vacation", "Went Phuket with friends");

        AlbumUni_M_1_M_1 album2 = new AlbumUni_M_1_M_1("album_2", "My Shimla Vacation", "Went Shimla with friends");

        PhotoUni_M_1_M_1 photo = new PhotoUni_M_1_M_1("photo_1", "One beach", "On beach with friends");
        album1.setPhoto(photo);
        album2.setPhoto(photo);

        p1.setAlbum(album1);

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

        p2.setAlbum(album1);

        // Photographer 3
        PhotographerUni_M_1_M_1 p3 = new PhotographerUni_M_1_M_1();
        p3.setPhotographerId(3);
        p3.setPhotographerName("Kuldeep");

        p3.setAlbum(album2);

        // Photographer 4
        PhotographerUni_M_1_M_1 p4 = new PhotographerUni_M_1_M_1();
        p4.setPhotographerId(4);
        p4.setPhotographerName("VivekS");

        p4.setAlbum(album2);

        photographers.add(p1);
        photographers.add(p2);
        photographers.add(p3);
        photographers.add(p4);
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.