Examples of Price


Examples of it.hotel.model.price.Price


  private void setUpRooms(){
   
    Typology t1 = new Typology();
    price1= new Price();
    price1.setCalendarDate(CalendarUtils.GetToday());
    price1.setTypology_id(t1.getId());
    price1.setPrice(new BigDecimal(120));
    expectedPrices1.add(price1);
    price2= new Price();
    price2.setCalendarDate(CalendarUtils.GetGregorianCalendar(CalendarUtils.getTomorrowInddMMyyyy()));
    price2.setTypology_id(t1.getId());
    price2.setPrice(new BigDecimal(120));
    expectedPrices1.add(price2);
    t1.setPriceList(expectedPrices1);
View Full Code Here

Examples of it.hotel.model.price.Price


  public void setupExpectedPrice(){
      Typology typ= expectedTypologies.get(1);
    GregorianCalendar date = CalendarUtils.GetToday();
    price=new Price();
    price.setCalendarDate(date);
    price.setTypology_id(typ.getId());
    price.setPrice(new BigDecimal(120));
    expectedPrices= new HashSet<Price>();
    expectedPrices.add(price);
View Full Code Here

Examples of it.hotel.model.price.Price

    }

   
    public void setPrice(){

    price= new Price();
    price.setCalendarDate(CalendarUtils.GetToday());
    price.setPrice(new BigDecimal(120));
    price.setTypology_id(t.getId());
    price.setStructure(hotel2);
    price.setHotelId(hotel2.getId());
    priceRawManager.add(price);
    t.addPrice(price);
    price1 = new Price ();
    price1.setCalendarDate(CalendarUtils.GetGregorianCalendar("01/01/2008"));
    price1.setPrice(new BigDecimal(100));
    price1.setTypology_id(t.getId());
    price1.setHotelId(hotel2.getId());
    price1.setStructure(hotel2);
    price1.setTypology_id(t.getId());
    priceRawManager.add(price1);
    t.addPrice(price1);
   
    //setPrice
    Price price2 = new Price ();
    price2.setCalendarDate(CalendarUtils.GetToday());
    price2.setPrice(new BigDecimal(100));
    price2.setTypology_id(t1.getId());
    price2.setHotelId(hotel2.getId());
    price2.setStructure(hotel2);
    price2.setTypology_id(t1.getId());
    priceRawManager.add(price2);
    t1.addPrice(price2);
    }
View Full Code Here

Examples of jodd.json.model.cat.Price

    assertEquals(339887544, performance.getId().longValue());
    assertNull(performance.getLogo());
    assertNull(performance.getName());
    List<Price> prices = performance.getPrices();
    assertEquals(2, prices.size());
    Price price = prices.get(0);
    assertEquals(90250, price.getAmount());
    assertEquals(337100890, price.getAudienceSubCategoryId().longValue());
    assertEquals(338937295, price.getSeatCategoryId().longValue());
    List<SeatCategory> seatCategories = performance.getSeatCategories();
    assertEquals(2, seatCategories.size());
    SeatCategory seatCategory = seatCategories.get(0);
    assertEquals(338937295, seatCategory.getSeatCategoryId().longValue());
    List<Area> areas = seatCategory.getAreas();
View Full Code Here

Examples of org.apache.derbyTesting.functionTests.tests.lang.Price

             new byte[] { (byte) 1, (byte) 1, (byte) 1 },
             new Float( 1.0F ),
             new Integer( 1 ),
             new Time( 1L ),
             new Timestamp( 1L ),
             new Price( "USD", new BigDecimal( "1" ), new Timestamp( 1 ) ),
             "firstt",
             new byte[] { (byte) 1, (byte) 1, (byte) 1 }
             );
    }
View Full Code Here

Examples of org.apache.derbyTesting.functionTests.tests.lang.Price

             new byte[] { (byte) 2, (byte) 2, (byte) 2 },
             new Float( 2.0F ),
             new Integer( 2 ),
             new Time( 2L ),
             new Timestamp( 2L ),
             new Price( "USD", new BigDecimal( "2" ), new Timestamp( 2 ) ),
             "second",
             new byte[] { (byte) 2, (byte) 2, (byte) 2 }
             );
    }
View Full Code Here

Examples of org.apache.derbyTesting.functionTests.tests.lang.Price

             new byte[] { (byte) 1, (byte) 1, (byte) 1 },
             new Float( 1.0F ),
             new Integer( 1 ),
             new Time( 1L ),
             new Timestamp( 1L ),
             new Price( "USD", new BigDecimal( "1" ), new Timestamp( 1 ) ),
             "firstt",
             new byte[] { (byte) 1, (byte) 1, (byte) 1 }
             );
    }
View Full Code Here

Examples of org.apache.derbyTesting.functionTests.tests.lang.Price

             new byte[] { (byte) 2, (byte) 2, (byte) 2 },
             new Float( 2.0F ),
             new Integer( 2 ),
             new Time( 2L ),
             new Timestamp( 2L ),
             new Price( "USD", new BigDecimal( "2" ), new Timestamp( 2 ) ),
             "second",
             new byte[] { (byte) 2, (byte) 2, (byte) 2 }
             );
    }
View Full Code Here

Examples of org.apache.derbyTesting.functionTests.tests.lang.Price

             new byte[] { (byte) 1, (byte) 1, (byte) 1 },
             new Float( 1.0F ),
             new Integer( 1 ),
             new Time( 1L ),
             new Timestamp( 1L ),
             new Price( "USD", new BigDecimal( 1 ), new Timestamp( 1 ) ),
             "firstt",
             new byte[] { (byte) 1, (byte) 1, (byte) 1 }
             );
    }
View Full Code Here

Examples of org.apache.derbyTesting.functionTests.tests.lang.Price

             new byte[] { (byte) 2, (byte) 2, (byte) 2 },
             new Float( 2.0F ),
             new Integer( 2 ),
             new Time( 2L ),
             new Timestamp( 2L ),
             new Price( "USD", new BigDecimal( 2 ), new Timestamp( 2 ) ),
             "second",
             new byte[] { (byte) 2, (byte) 2, (byte) 2 }
             );
    }
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.