Package org.springframework.samples.flight

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


    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

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

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.