removing first insert from assertThrows
@@ -60,10 +60,10 @@ public class CustomerServiceIntegrationTest {
ticketId.setVenue("V");
Ticket ticket = new Ticket(ticketId, "Event C");
+ service.insert(ticket);
assertThrows(DuplicateKeyException.class, () -> {
service.insert(ticket);
- service.insert(ticket);
});
}
