34353637383940414243
} private Place getIgeliPlace() { String name = "Chalet Igeli"; String desc = "Chalet Igeli im Berner Oberland"; Place p = new Place(); p.setDescription(desc); p.setName(name); return p; }
50515253545556575859606162
RateYourPlaceService service = getRYPService(); String name = "Chalet Igeli"; String desc = "Chalet Igeli im Berner Oberland"; Place p = new Place(); p.setDescription(desc); p.setName(name); service.addPlace(p); List<Place> places = service.getAllPlaces();
7778798081828384858687
public void testAddRating() { RateYourPlaceService service = getRYPService(); Place place = getIgeliPlace(); String ratingComment = "somecomment"; Rating rating = new Rating(); rating.setComment(ratingComment); rating.setRate(Rate.R10);
9596979899100101102103104105
public void testAddSeveralRatings() { RateYourPlaceService service = getRYPService(); Place place = getIgeliPlace(); String ratingComment = "somecomment"; Rating rating = new Rating(); rating.setComment(ratingComment); Rate r1 = Rate.R10;