Skip to content

Commit

Permalink
rest api: integration tests #588
Browse files Browse the repository at this point in the history
  • Loading branch information
syjer committed Jun 12, 2019
1 parent fc693f4 commit d43f9ba
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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());

Expand Down

0 comments on commit d43f9ba

Please sign in to comment.