|
|
@ -19,4 +19,11 @@ public class SeatTest { |
|
|
|
assertThat(seat.getSeatType()).isEqualTo(SeatType.Regular); |
|
|
|
assertThat(seat.getSeatClass()).isEqualTo(SeatClass.Economy); |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
public void testMakingFlightTestParentClass(){ |
|
|
|
Seat seat = new FlightSeat(100.0, "1234"); |
|
|
|
assertThat(((FlightSeat) seat).getFare()).isEqualTo(100.0); |
|
|
|
assertThat(((FlightSeat) seat).getReservationNumber()).isEqualTo("1234"); |
|
|
|
} |
|
|
|
} |