@Test public void toEventTOList() { }
public List<NotificationEventTO> toEventTOList(List<NotificationEvent> events) { List<NotificationEventTO> eventTOList = new ArrayList<NotificationEventTO>(); for (NotificationEvent event : events) { NotificationEventTO eventTO = convertToEventTO(event); if (eventTO.isEventEligible()) { eventTOList.add(eventTO); } } return eventTOList; }
NotificationConverter { public List<NotificationEventTO> toEventTOList(List<NotificationEvent> events) { List<NotificationEventTO> eventTOList = new ArrayList<NotificationEventTO>(); for (NotificationEvent event : events) { NotificationEventTO eventTO = convertToEventTO(event); if (eventTO.isEventEligible()) { eventTOList.add(eventTO); } } return eventTOList; } }
NotificationConverter { public List<NotificationEventTO> toEventTOList(List<NotificationEvent> events) { List<NotificationEventTO> eventTOList = new ArrayList<NotificationEventTO>(); for (NotificationEvent event : events) { NotificationEventTO eventTO = convertToEventTO(event); if (eventTO.isEventEligible()) { eventTOList.add(eventTO); } } return eventTOList; }  }
NotificationConverter { public List<NotificationEventTO> toEventTOList(List<NotificationEvent> events) { List<NotificationEventTO> eventTOList = new ArrayList<NotificationEventTO>(); for (NotificationEvent event : events) { NotificationEventTO eventTO = convertToEventTO(event); if (eventTO.isEventEligible()) { eventTOList.add(eventTO); } } return eventTOList; }  List<NotificationEventTO> toEventTOList(List<NotificationEvent> events); NotificationEventTO convertToEventTO(NotificationEvent event); }
NotificationConverter { public List<NotificationEventTO> toEventTOList(List<NotificationEvent> events) { List<NotificationEventTO> eventTOList = new ArrayList<NotificationEventTO>(); for (NotificationEvent event : events) { NotificationEventTO eventTO = convertToEventTO(event); if (eventTO.isEventEligible()) { eventTOList.add(eventTO); } } return eventTOList; }  List<NotificationEventTO> toEventTOList(List<NotificationEvent> events); NotificationEventTO convertToEventTO(NotificationEvent event);  }