diff --git a/src/test/java/hs/fulda/de/ci/exam/project/FrontDeskOfficerTest.java b/src/test/java/hs/fulda/de/ci/exam/project/FrontDeskOfficerTest.java index 12cd3b4..e4e48f4 100644 --- a/src/test/java/hs/fulda/de/ci/exam/project/FrontDeskOfficerTest.java +++ b/src/test/java/hs/fulda/de/ci/exam/project/FrontDeskOfficerTest.java @@ -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()); + }); + } }