Examples of PhotographerUni_1_M_M_M


Examples of com.impetus.kundera.entity.photographer.PhotographerUni_1_M_M_M

    @Test
    public void test_1_M_M_M()
    {
        FlushManager flushManager = new FlushManager();
        PhotographerUni_1_M_M_M a = new PhotographerUni_1_M_M_M();
        a.setPhotographerId(1);
        AlbumUni_1_M_M_M b1 = new AlbumUni_1_M_M_M();
        b1.setAlbumId("b1");
        AlbumUni_1_M_M_M b2 = new AlbumUni_1_M_M_M();
        b2.setAlbumId("b2");

        PhotoUni_1_M_M_M c1 = new PhotoUni_1_M_M_M();
        c1.setPhotoId("c1");
        PhotoUni_1_M_M_M c2 = new PhotoUni_1_M_M_M();
        c2.setPhotoId("c2");
        PhotoUni_1_M_M_M c3 = new PhotoUni_1_M_M_M();
        c3.setPhotoId("c3");

        b1.addPhoto(c1);
        b1.addPhoto(c2);
        b2.addPhoto(c2);
        b2.addPhoto(c3);
        a.addAlbum(b1);
        a.addAlbum(b2);

        ObjectGraph graph = graphBuilder.getObjectGraph(a, null);
        pc.getMainCache().addGraphToCache(graph, pc);

        markAllNodeAsDirty();
View Full Code Here

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

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

    }

    @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

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

    }

    @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

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

    @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

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

    }

    @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

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

    }

    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
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.