// @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 testGetOrigin() { final int capacity = 180; final int emptySeats = 6; final Vehicle vehicle = new HL777b("BERLIN-NICE", capacity, emptySeats); final Plane plane = new VehicleAdapter(vehicle); assertEquals(plane.getOrigin(), "berlin"); System.out.println("Origin test OK"); }