Package org.springframework.springfaces.traveladvisor.domain

Examples of org.springframework.springfaces.traveladvisor.domain.Review


    assertThat(reviews.getTotalElements(), is(14L));
  }

  @Test
  public void shouldFindByHotelAndIndex() throws Exception {
    Review review = this.reviewRepository.findByHotelAndIndex(this.bathTravelodge, 8);
    assertThat(review.getTitle(), is("Very Noisy"));
  }
View Full Code Here


  }

  public Review addReview(Hotel hotel, ReviewDetails details) {
    // FIXME
    System.out.println(details.getTitle());
    return new Review(hotel, 1, details);
  }
View Full Code Here

  }

  @RequestMapping("/advisor/{country}/{city}/{name}/review/{index}")
  public String hotelReview(@PathVariable String country, @PathVariable String city, @PathVariable String name,
      @PathVariable int index, Model model) {
    Review review = this.hotelService.getReview(getHotel(country, city, name), index);
    model.addAttribute(review);
    return "review";
  }
View Full Code Here

TOP

Related Classes of org.springframework.springfaces.traveladvisor.domain.Review

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.