// @Ignore @Test public void testSideBySide() { final int passengers = 121; final Plane plane = new EF747("swansea", "scunthorpe", passengers); final int capacity = 130; final int emptySeats = 9; final Vehicle vehicle = new HL777b("SWANSEA-SCUNTHORPE", capacity, emptySeats); final Plane adapted = new VehicleAdapter(vehicle); assertEquals(plane.getOrigin(), adapted.getOrigin()); assertEquals(plane.getDestination(), adapted.getDestination()); assertEquals(plane.getPassengerCount(), adapted.getPassengerCount()); System.out.println("Side by side test OK"); }
// @Ignore @Test public void testGetDestination() { final int capacity = 180; final int emptySeats = 6; final Vehicle vehicle = new HL777b("NICE-BERLIN", capacity, emptySeats); final Plane plane = new VehicleAdapter(vehicle); assertEquals(plane.getDestination(), "nice"); System.out.println("Destination test OK"); }