Skip to content

Commit

Permalink
check invoice/receipt #588
Browse files Browse the repository at this point in the history
  • Loading branch information
syjer committed Jun 12, 2019
1 parent fd7dff9 commit 28ccb2a
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -622,6 +622,11 @@ public void reservationFlowTest() throws Exception {
assertEquals(HttpStatus.BAD_REQUEST, releaseTicketFailure.getStatusCode());
assertEquals(HttpStatus.OK, ticketApiV2Controller.getTicketInfo(event.getShortName(), ticket.getUuid()).getStatusCode());


//no invoice, but receipt
assertEquals(HttpStatus.NOT_FOUND, reservationApiV2Controller.getInvoice(event.getShortName(), reservationId, new MockHttpServletResponse(), null).getStatusCode());
assertEquals(HttpStatus.OK, reservationApiV2Controller.getReceipt(event.getShortName(), reservationId, new MockHttpServletResponse(), null).getStatusCode());

}

}
Expand Down

0 comments on commit 28ccb2a

Please sign in to comment.