Package uk.org.woodcraft.bookings.datamodel

Examples of uk.org.woodcraft.bookings.datamodel.Event


    SecurityModel.checkIsDevMode();
   
    // Event queries
    CannedQueries.allEvents(false);
    CannedQueries.allEvents(true);
    Event event1 = CannedQueries.eventByName(TestConstants.EVENT1_NAME);
    @SuppressWarnings("unused")
    Event duplicateEvent = CannedQueries.eventByName(TestConstants.EVENT1_NAME, event1.getKeyCheckNotNull());
    CannedQueries.eventByKey(event1.getKeyCheckNotNull());
   
    // Village queries
    CannedQueries.villagesForEvent(event1);
View Full Code Here


    Key key = getWebKeyAsKey();
    if (key != null)
    {
      setModel(CannedQueries.eventByKey(key));
    } else {
      setModel(new Event());
    }
  }
View Full Code Here

    // Empty case
    TestUtils.assertNames(new ArrayList<NamedEntity>());
   
   
    List<NamedEntity> events = new ArrayList<NamedEntity>();
    events.add(new Event("test1", null, null, false, RegisteredPricingStrategy.COCAMP));
    events.add(new Event("test2", null, null, false, RegisteredPricingStrategy.COCAMP));
   
    TestUtils.assertNames(events, "test1", "test2");
   
    try
    {
View Full Code Here

  public static final Date DATE_AFTER_AMMENDMENT_DEADLINE = DateUtils.getDate(2013, 6, 22);
  public static final Date DATE_AFTER_EVENT_START = DateUtils.getDate(2013, 7, 3)
 
  @Override
  protected Event getTestEvent() {
    Event event1 = new Event(TestConstants.EVENT1_NAME, VCAMP_START, VCAMP_END, true, RegisteredPricingStrategy.VENTURER_CAMP);
    event1.setEarlyBookingDeadline(DateUtils.getDate(2012, 11, 10));
    event1.setBookingDeadline(DateUtils.getDate(2013, 6, 5));
    event1.setBookingAmendmentDeadline(DateUtils.getDate(2013, 6, 21)); // For VCamp, the amendment deadline is different to the booking deadline
    event1.setBookingSystemLocked(DateUtils.getDate(2011, 9, 3)); // Irrelevant
   
    return event1;
  }
View Full Code Here

TOP

Related Classes of uk.org.woodcraft.bookings.datamodel.Event

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.