Examples of FlightsDocument


Examples of org.springframework.samples.flight.FlightsDocument

    return new XmlBeansMarshaller();
  }

  @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

Examples of org.springframework.samples.flight.FlightsDocument

    return new XmlBeansMarshaller();
  }

  @Override
  protected void testFlights(Object o) {
    FlightsDocument flightsDocument = (FlightsDocument) o;
    assertNotNull("FlightsDocument is null", flightsDocument);
    FlightsDocument.Flights flights = flightsDocument.getFlights();
    assertEquals("Invalid amount of flight elements", 1, flights.sizeOfFlightArray());
    testFlight(flights.getFlightArray(0));
  }
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.