Examples of PhotographerBi_M_M_1_1


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

    }

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

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

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

    }

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

        pickr.mergePhotographer(p1);

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

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

        pickr.mergePhotographer(p2);

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

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

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

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

    }
View Full Code Here

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

    }

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

        PhotographerBi_M_M_1_1 p1AfterDeletion = (PhotographerBi_M_M_1_1) pickr.getPhotographer(
                PhotographerBi_M_M_1_1.class, 1);
        Assert.assertNull(p1AfterDeletion);
    }
View Full Code Here

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

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

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

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

        AlbumBi_M_M_1_1 album1 = new AlbumBi_M_M_1_1("album_1", "My Phuket Vacation", "Went Phuket with friends");
        AlbumBi_M_M_1_1 album2 = new AlbumBi_M_M_1_1("album_2", "My Shimla Vacation", "Went Shimla with friends");
        AlbumBi_M_M_1_1 album3 = new AlbumBi_M_M_1_1("album_3", "My Zurik Vacation", "Went Zurik with friends");

        album1.setPhoto(new PhotoBi_M_M_1_1("photo_1", "One beach", "On beach with friends"));
        album2.setPhoto(new PhotoBi_M_M_1_1("photo_2", "In Hotel", "Chilling out in room"));
        album3.setPhoto(new PhotoBi_M_M_1_1("photo_3", "At Airport", "So tired"));

        p1.addAlbum(album1);
        p1.addAlbum(album2);

        p2.addAlbum(album2);
        p2.addAlbum(album3);

        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.