@Test public void parseInvalidEvents() { Assertions.assertThat(eventParser.parse(null)).isEmpty(); }
protected List<Map<String, Object>> parse(List<Event> events) { List<Map<String, Object>> parsedEvents = new ArrayList<Map<String, Object>>(); if (!CollectionUtils.isEmpty(events)) { for (Event event : events) { parsedEvents.add(parseEvent(event)); } } return parsedEvents; }
EventParser { protected List<Map<String, Object>> parse(List<Event> events) { List<Map<String, Object>> parsedEvents = new ArrayList<Map<String, Object>>(); if (!CollectionUtils.isEmpty(events)) { for (Event event : events) { parsedEvents.add(parseEvent(event)); } } return parsedEvents; } }
EventParser { protected List<Map<String, Object>> parse(List<Event> events) { List<Map<String, Object>> parsedEvents = new ArrayList<Map<String, Object>>(); if (!CollectionUtils.isEmpty(events)) { for (Event event : events) { parsedEvents.add(parseEvent(event)); } } return parsedEvents; } EventParser(String timestampField); }
EventParser { protected List<Map<String, Object>> parse(List<Event> events) { List<Map<String, Object>> parsedEvents = new ArrayList<Map<String, Object>>(); if (!CollectionUtils.isEmpty(events)) { for (Event event : events) { parsedEvents.add(parseEvent(event)); } } return parsedEvents; } EventParser(String timestampField);  }
EventParser { protected List<Map<String, Object>> parse(List<Event> events) { List<Map<String, Object>> parsedEvents = new ArrayList<Map<String, Object>>(); if (!CollectionUtils.isEmpty(events)) { for (Event event : events) { parsedEvents.add(parseEvent(event)); } } return parsedEvents; } EventParser(String timestampField);   }