diff --git a/src/test/java/alfio/controller/api/v2/user/ReservationFlowIntegrationTest.java b/src/test/java/alfio/controller/api/v2/user/ReservationFlowIntegrationTest.java index 704be522c7..50f0f59bf5 100644 --- a/src/test/java/alfio/controller/api/v2/user/ReservationFlowIntegrationTest.java +++ b/src/test/java/alfio/controller/api/v2/user/ReservationFlowIntegrationTest.java @@ -36,6 +36,7 @@ import alfio.model.modification.DateTimeModification; import alfio.model.modification.TicketCategoryModification; import alfio.model.modification.TicketReservationModification; +import alfio.model.transaction.PaymentMethod; import alfio.model.transaction.PaymentProxy; import alfio.repository.EventRepository; import alfio.repository.TicketCategoryRepository; @@ -253,6 +254,14 @@ public void reservationFlowTest() throws Exception { assertEquals(HttpStatus.OK, eventRes.getStatusCode()); var selectedEvent = eventRes.getBody(); assertEquals("CHF", selectedEvent.getCurrency()); + assertFalse(selectedEvent.isFree()); + assertEquals(event.getSameDay(), selectedEvent.isSameDay()); + assertTrue(selectedEvent.isVatIncluded()); + assertEquals(event.getShortName(), selectedEvent.getShortName()); + assertEquals(event.getDisplayName(), selectedEvent.getDisplayName()); + assertEquals(event.getFileBlobId(), selectedEvent.getFileBlobId()); + assertEquals(1, selectedEvent.getActivePaymentMethods().size()); + assertTrue(selectedEvent.getActivePaymentMethods().containsKey(PaymentMethod.BANK_TRANSFER)); checkCalendar(event.getShortName());