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

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


    }

    @Override
    public void addPhotographer()
    {
        PhotographerUni_1_1_1_1 p = populatePhotographer();
        pickr.addPhotographer(p);
    }
View Full Code Here


    }

    @Override
    protected void updatePhotographer()
    {
        PhotographerUni_1_1_1_1 p = (PhotographerUni_1_1_1_1) pickr.getPhotographer(PhotographerUni_1_1_1_1.class,
                photographerId);
        assertPhotographer(p);
        p.setPhotographerName("Vivek");

        pickr.mergePhotographer(p);

        PhotographerUni_1_1_1_1 p2 = (PhotographerUni_1_1_1_1) pickr.getPhotographer(PhotographerUni_1_1_1_1.class,
                photographerId);
        assertModifiedPhotographer(p2);
    }
View Full Code Here

    }

    @Override
    protected void getPhotographer()
    {
        PhotographerUni_1_1_1_1 p = (PhotographerUni_1_1_1_1) pickr.getPhotographer(PhotographerUni_1_1_1_1.class,
                photographerId);
        assertPhotographer(p);

    }
View Full Code Here

    @Override
    protected void getAllPhotographers()
    {
        List<Object> ps = pickr.getAllPhotographers(PhotographerUni_1_1_1_1.class.getSimpleName());
        PhotographerUni_1_1_1_1 p = (PhotographerUni_1_1_1_1) ps.get(0);

        assertModifiedPhotographer(p);

    }
View Full Code Here

    }

    @Override
    protected void deletePhotographer()
    {
        PhotographerUni_1_1_1_1 p = (PhotographerUni_1_1_1_1) pickr.getPhotographer(PhotographerUni_1_1_1_1.class,
                photographerId);
        assertModifiedPhotographer(p);
        pickr.deletePhotographer(p);
        PhotographerUni_1_1_1_1 p2 = (PhotographerUni_1_1_1_1) pickr.getPhotographer(PhotographerUni_1_1_1_1.class,
                photographerId);
        Assert.assertNull(p2);

    }
View Full Code Here

        Assert.assertEquals("One beach", photo.getPhotoCaption());
    }

    private PhotographerUni_1_1_1_1 populatePhotographer()
    {
        PhotographerUni_1_1_1_1 p = new PhotographerUni_1_1_1_1();
        p.setPhotographerId(photographerId);
        p.setPhotographerName("Amresh");

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

        PhotoUni_1_1_1_1 photo = new PhotoUni_1_1_1_1("photo_1", "One beach", "On beach with friends");

        album.setPhoto(photo);

        p.setAlbum(album);
        return p;
    }
View Full Code Here

TOP

Related Classes of com.impetus.kundera.tests.crossdatastore.pickr.entities.photographer.PhotographerUni_1_1_1_1

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.