Examples of Hotel


Examples of it.hotel.model.hotel.Hotel

 
 
  public void testGetStructure() {
   
   
    Hotel hotel = addHotel();
   
    int id = hotel.getId();
   
    Structure structure = (Structure) localizedStructureManager.get(id);
   
    assertEquals(hotel, structure);
   
View Full Code Here

Examples of it.hotel.model.hotel.Hotel

  }



  private void setupExpectedHotels() {
    Hotel h1=new Hotel();
       h1.setId(1);
       Hotel h2=new Hotel();
       h2.setId(2);
       expectedHotels.add(h1);
       expectedHotels.add(h2);
      
  }
View Full Code Here

Examples of it.hotel.model.hotel.Hotel

    price2.setPrice(new BigDecimal(120));
    expectedPrices1.add(price2);
    t1.setPriceList(expectedPrices1);
    room1 = new Room();
    room1.setTypology(t1);
    Hotel h1 = new Hotel();
    h1.setId(4);
    room1.setStructure(h1);
   
       
  }
View Full Code Here

Examples of it.hotel.model.hotel.Hotel

  }



  private void createModels() {
    hotel= new Hotel();
    typology=new Typology();
   
    customer=new Customer();
    room= new Room();
  }
View Full Code Here

Examples of it.hotel.model.hotel.Hotel

    localizedHotelManager.add(structure1);
    return structure1;
  }
 
  public Hotel addHotel(){
    Hotel hotel1=new Hotel();
    hotel1.setAddress("via garibaldi");
    hotel1.setBankaccount("76876587658687");
    hotel1.setBriefdescription("breve descrizione");
    hotel1.setCap("09800");
    hotel1.setCity("Cagliari");
    hotel1.setCodicefiscale("070429589304");
    hotel1.setDescription("lunga descrizione");
    hotel1.setFax("0898080");
    hotel1.setName("setar");
    hotel1.setCompanytaxnumber("62349562ncb982y5");
    hotel1.setProvince("CA");
    hotel1.setCompanytype("setar");
    hotel1.setTelephone("070429589304");
    localizedHotelManager.add(hotel1);
    return hotel1;
  }
View Full Code Here

Examples of it.hotel.model.hotel.Hotel

   
  }
 
    public void setHotel(){
     
      hotel1=new Hotel();
    hotel1.setAddress("via garibaldi");
    hotel1.setBankaccount("76876587658687");
    hotel1.setBriefdescription("breve descrizione");
    hotel1.setCap("09800");
    hotel1.setCity("Cagliari");
    hotel1.setCodicefiscale("070429589304");
    hotel1.setDescription("lunga descrizione");
    hotel1.setFax("0898080");
    hotel1.setName("setar");
    hotel1.setCompanytaxnumber("62349562ncb982y5");
    hotel1.setProvince("CA");
    hotel1.setCompanytype("setar");
    hotel1.setTelephone("070429589304");
    localizedHotelManager.add(hotel1);

    hotel2=new Hotel();
    hotel2.setAddress("via fiume");
    hotel2.setBankaccount("76876587658687");
    hotel2.setBriefdescription("breve descrizione");
    hotel2.setCap("09800");
    hotel2.setCity("Cagliari");
View Full Code Here

Examples of it.hotel.model.hotel.Hotel

  }
 
public void testModelAndView() throws Exception {
  req.addParameter("id", "1")
  String idString = req.getParameter("id");
  Hotel hotel=expectedHotels.get(1);
  expect(structureManager.get(Integer.parseInt(idString))).andReturn(hotel);
  replay(structureManager);
    mvc = mapcontroller.handleRequest(req, resp);
  verify(structureManager);
 
View Full Code Here

Examples of it.hotel.model.hotel.Hotel

    assertTrue(mvc.getModel().containsKey("typologies"));
  }

  public void testRoomSimpleFormCreate() throws Exception {
    Typology typology = new Typology();
    Hotel hotel=new Hotel();
    List<Hotel> expectedHotels = new ArrayList<Hotel> ();
    Room room= new Room();
    roomFormController.setSuccessView("hotel.Room.list.htm");
    expect(roomManager.add(isA(Room.class))).andReturn(true);
    expect(typologyManager.get(1)).andReturn(typology);
View Full Code Here

Examples of it.hotel.model.hotel.Hotel

 
 
  public void setHotel() {
   
   
    hotel1=new Hotel();
    hotel1.setAddress("via garibaldi");
    hotel1.setBankaccount("76876587658687");
    hotel1.setBriefdescription("breve descrizione");
    hotel1.setCap("09800");
    hotel1.setCity("Cagliari");
View Full Code Here

Examples of it.hotel.model.hotel.Hotel

 
 
  }
  public void testCustomerSimpleFormCreate() throws Exception {
 
  Hotel hotel=new Hotel();
  List<Typology> expectedTypologies = new ArrayList<Typology> ();
  List<Hotel> expectedHotels = new ArrayList<Hotel> ();
  roomFormController.setSuccessView("hotel.customer.list.htm");

  expect(customerManager.add(isA(Customer.class))).andReturn(true);
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.