@Test(expected = NoParkingSpaceAvailable.class) public void testParkingOneCompactAndHybrid() { Car compact = new Car(COMPACT, "abc123"); parkingGarage.getAttendant().generateTicketAndOpenGate(compact); Car hybrid = new Car(HYBRID, "abc123"); parkingGarage.getAttendant().generateTicketAndOpenGate(hybrid); }
public Attendant getAttendant() { return attendant; }
ParkingGarage { public Attendant getAttendant() { return attendant; } }
ParkingGarage { public Attendant getAttendant() { return attendant; } ParkingGarage(); }
ParkingGarage { public Attendant getAttendant() { return attendant; } ParkingGarage(); Attendant getAttendant(); }
ParkingGarage { public Attendant getAttendant() { return attendant; } ParkingGarage(); Attendant getAttendant();  }