@Test public void serviceDeletesEvents() { final List<Event> events = this.mockSliceOfEvents(10).getContent(); try { this.transactionalEventService.deleteEvents(events); } catch (final Exception e) { fail("Unexpected exception! " + e.getMessage()); } }
public void deleteEvents(final List<Event> events) { final int size = events.size(); this.eventRepository.deleteAll(events); LOGGER.info("{} events deleted.", size); }
TransactionalEventService { public void deleteEvents(final List<Event> events) { final int size = events.size(); this.eventRepository.deleteAll(events); LOGGER.info("{} events deleted.", size); } }
TransactionalEventService { public void deleteEvents(final List<Event> events) { final int size = events.size(); this.eventRepository.deleteAll(events); LOGGER.info("{} events deleted.", size); }  }
TransactionalEventService { public void deleteEvents(final List<Event> events) { final int size = events.size(); this.eventRepository.deleteAll(events); LOGGER.info("{} events deleted.", size); }  List<Event> getEventsBeforeDate(final Date date, final int pageSize); void deleteEvents(final List<Event> events); }
TransactionalEventService { public void deleteEvents(final List<Event> events) { final int size = events.size(); this.eventRepository.deleteAll(events); LOGGER.info("{} events deleted.", size); }  List<Event> getEventsBeforeDate(final Date date, final int pageSize); void deleteEvents(final List<Event> events);  }