Package it.cdq.model.db

Examples of it.cdq.model.db.Airport


  private AirportRepository airportRepository;

  @Test
  @Transactional
  public void multiAddTest() {
    Airport a = new Airport();
    airportRepository.add(a);

    Flight f = new Flight();
    flightRepository.add(f);
View Full Code Here


    Assert.assertTrue(airportRepository.list().size() == ITERATION);
  }

  private Airport mockAirport(String name, int i) {
    Airport a = new Airport();
    a.setIataCode(name + i);
    return a;
  }
View Full Code Here

  public static final String QUALIFIER = "airportRepository";

  public Airport takeAirport(Airport sample) {

    Airport result = searchAirport(sample);
    if (result != null) {
      logger.info("Airport [" + counter.get() + "] alredy present : " + sample);
      return result;
    }
View Full Code Here

        i++;
        for (Trip tripDate : tripDates) {

          Trip clone = tripDate.clone();

          Airport a = new Airport();
          a.setAirportname(option.getOriginLabel());
          a.setIataCode(option.getOrigin());

          Airport b = new Airport();
          b.setAirportname(option.getDestinationLabel());
          b.setIataCode(option.getDestination());

          Flight arrival = clone.getArrival();
          arrival.setOrigin(a);
          arrival.setDestination(b);
          arrival.setCandidate(true);
View Full Code Here

TOP

Related Classes of it.cdq.model.db.Airport

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.