|
|
@ -31,4 +31,12 @@ public class FrontDeskOfficerTest { |
|
|
|
frontDeskOfficer.createItinerary(null, airport_be, new Date()); |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
@DisplayName("Should Not Create Itinerary when Destination Airport is null") |
|
|
|
public void shouldThrowRuntimeExceptionWhenFinalAirportIsNull(){ |
|
|
|
assertThrows(RuntimeException.class, () -> { |
|
|
|
frontDeskOfficer.createItinerary(airport_fr, null, new Date()); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |