Пример #1
0
  @Test
  /** Tests that isFullPlane() returns false if there are empty seats on the plane. */
  public void testIsPlaneFullReturnsFalse() {
    AirplaneSeats seats = new AirplaneSeats(1, 1);

    Assert.assertFalse(seats.isPlaneFull());
  }
Пример #2
0
 @Test
 /** Tests that isFullPlane() returns true if there are no empty seats on the plane. */
 public void testIsPlaneFullReturnsTrue()
     throws AlreadyReservedException, SeatOutOfBoundsException {
   AirplaneSeats seats = new AirplaneSeats(1, 1);
   seats.reserve("A1");
   Assert.assertTrue(seats.isPlaneFull());
 }