Package it.hotel.model.photo

Examples of it.hotel.model.photo.Photo


  }
 
 
  public void testGetAllPhotos() {
   
    Photo photo = setUpPhotos();
   
    Gallery gallery = new Gallery();
   
    galleryRawManager.add(gallery);
    photo.setGallery(gallery);
   
    gallery.addNewPhoto(photo);
   
    photoRawManager.add(photo);
   
View Full Code Here


  }
 
 
  public void testAddPhoto() {
   
    Photo photo = setUpPhotos();
   
   
    photoRawManager.add(photo);
   
    Photo photo2 = (Photo) photoRawManager.get(photo.getId());
   
    assertEquals(photo, photo2);
 
  }
View Full Code Here

  public void testRemoveHotelWithPhoto() {
   
   
        Hotel hotel = new Hotel();
       
        Photo photo = new Photo();
   
    localizedHotelManager.add(hotel);
   
        Gallery gallery = hotel.getGallery();
       
        gallery.addNewPhoto(photo);
       
        photo.setGallery(gallery);
   
    Hotel hotel2 = (Hotel) localizedHotelManager.get(hotel.getId());
   
    localizedHotelManager.remove(hotel);
   
View Full Code Here

       
    }
   
    else {
     
    Photo photo = photos.iterator().next();
   
    String galleryDir2 = photo.getUrl();
   
    String dirSmallPhoto = galleryDir + File.separator + "small";
    String dirBigPhoto   = galleryDir + File.separator + "big";
   
    response1 = DirectoryUtils.deleteDirectory(dirSmallPhoto);
View Full Code Here

       
    }
   
    else {
     
    Photo photo = photos.iterator().next();
   
    String galleryDir2 = photo.getUrl();
   
    String dirSmallPhoto = galleryDir + File.separator + "small";
    String dirBigPhoto   = galleryDir + File.separator + "big";
   
    response1 = DirectoryUtils.deleteDirectory(dirSmallPhoto);
View Full Code Here

TOP

Related Classes of it.hotel.model.photo.Photo

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.