System.out.println("C tests have been disabled.");
return;
}
Bus bus = new Bus();
SeatRow rowA = new SeatRow();
rowA.setRowName("A");
Seat seatA1 = new Seat();
seatA1.setNumber(1);
Seat seatA2 = new Seat(); //empty element
Seat seatA3 = new Seat();
seatA3.setNumber(3);
rowA.setSeats(Arrays.asList(seatA1, seatA2, seatA3));
bus.setSeatRows(Arrays.asList(rowA));
bus = processThroughXml(bus);
assertNotNull(bus.getSeatRows());
assertEquals(1, bus.getSeatRows().size());
List<Seat> seats =bus.getSeatRows().get(0).getSeats();