Java Reference
In-Depth Information
seatType.setPrice(20);
seatType.setQuantity(5);
ticketService.createSeatType(seatType);
log.info("Created Seat Type");
assertNotNull(seatType.getId());
List<SeatType> listSeats = new ArrayList();
listSeats.add(seatType);
ticketService.createTheatre(listSeats);
log.info("Created Theatre");
log.info(seatType.getDescription() + " was
persisted with id " + seatType.getId());
bookerService.bookSeat(new Long(seatType.getId()),
seatType.getPrice());
log.info("Created Theatre");
log.info("Money left: " +bookerService.getMoney());
assertTrue(bookerService.getMoney() <100);
}
}
Search WWH ::




Custom Search