This commit is contained in:
2025-09-03 10:12:45 -04:00
parent d0a1567fd2
commit 6ed7e47640
10 changed files with 17 additions and 38 deletions

View File

@@ -50,6 +50,8 @@ public final class TestReservations {
hotel.setNumberOfFloors(1);
hotel.setNumberOfBedRooms(2);
hotel.setSquareFeet(450);
hotel.setReservation_start_date(ZonedDateTime.of(2025, 07, 05, 10, 0, 0, 0, ZoneId.of("UTC")));
hotel.setReservation_end_date(ZonedDateTime.of(2025, 11, 30, 22, 0, 0, 0, ZoneId.of("UTC")));
boolean success1 = mgr.addReservation(mgr.retrieveAccount(acct.account_number()), hotel);
assert success1;
@@ -62,6 +64,8 @@ public final class TestReservations {
cabin.setNumberOfFloors(2);
cabin.setNumberOfBedRooms(3);
cabin.setSquareFeet(806);
cabin.setReservation_start_date(ZonedDateTime.of(2025, 07, 05, 10, 0, 0, 0, ZoneId.of("UTC")));
cabin.setReservation_end_date(ZonedDateTime.of(2025, 11, 30, 22, 0, 0, 0, ZoneId.of("UTC")));
boolean success2 = mgr.addReservation(mgr.retrieveAccount(acct.account_number()), cabin);
assert success2;