Package org.springframework.samples.flight

Examples of org.springframework.samples.flight.FlightType


  @Override
  protected Object createFlights() {
    FlightsDocument flightsDocument = FlightsDocument.Factory.newInstance();
    FlightsDocument.Flights flights = flightsDocument.addNewFlights();
    FlightType flightType = flights.addNewFlight();
    flightType.setNumber(42L);
    return flightsDocument;
  }
View Full Code Here


    testFlight(flights.getFlightArray(0));
  }

  @Override
  protected void testFlight(Object o) {
    FlightType flight = null;
    if (o instanceof FlightType) {
      flight = (FlightType) o;
    }
    else if (o instanceof FlightDocument) {
      FlightDocument flightDocument = (FlightDocument) o;
      flight = flightDocument.getFlight();
    }
    assertNotNull("Flight is null", flight);
    assertEquals("Number is invalid", 42L, flight.getNumber());
  }
View Full Code Here

TOP

Related Classes of org.springframework.samples.flight.FlightType

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.