use of org.glassfish.jersey.examples.flight.model.Flight in project jersey by jersey.
the class FlightsDemoAppTest method _testOpenFlights.
public void _testOpenFlights(String acceptType) {
final List<Flight> flights = target("flights/open").request(acceptType).get(new GenericType<List<Flight>>() {
});
for (Flight flight : flights) {
assertNotNull("Flight id", flight.getId());
assertFalse("Flight id empty", flight.getId().isEmpty());
assertFalse("Aircraft not assigned to flight", flight.getAircraft().isAvailable());
assertTrue("Flight not open", flight.isOpen());
}
}
Aggregations