Browse Source

should not create itinerary when final airport is null

feature-pr-FrontDeskOfficer
Sona Markosyan 3 years ago
parent
commit
4f8b1478e5
  1. 8
      src/test/java/hs/fulda/de/ci/exam/project/FrontDeskOfficerTest.java

8
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()); 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());
});
}
} }
Loading…
Cancel
Save