|
|
@ -85,4 +85,12 @@ public class ItineraryTest { |
|
|
|
private static List<String> passportNumberList() { |
|
|
|
return Arrays.asList("A2", "000000", "AB231837%8"); |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
@DisplayName("Should Not Make Reservation when Passenger Birthdate is null") |
|
|
|
public void shouldThrowRuntimeExceptionWhenDateIsNull() { |
|
|
|
assertThrows(RuntimeException.class, () -> { |
|
|
|
item1.makeReservation(new Passenger("John", "AB127389", null)); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |