@Test public void getEventsWithEmptyBodyAndEmptyHeaders() { final List<Event> events = handler.getEvents("", new ImmutableMap.Builder<String, String>().build()); Assertions.assertThat(events).isNotNull(); }
@Override public List<Event> getEvents(String body, Map<String, String> headers) { List<Event> events = new ArrayList<Event>(0); events.add(EventBuilder.withBody(body, Charsets.UTF_8, headers)); return events; }
DefaultRestSourceHandler implements RestSourceHandler { @Override public List<Event> getEvents(String body, Map<String, String> headers) { List<Event> events = new ArrayList<Event>(0); events.add(EventBuilder.withBody(body, Charsets.UTF_8, headers)); return events; } }
DefaultRestSourceHandler implements RestSourceHandler { @Override public List<Event> getEvents(String body, Map<String, String> headers) { List<Event> events = new ArrayList<Event>(0); events.add(EventBuilder.withBody(body, Charsets.UTF_8, headers)); return events; } DefaultRestSourceHandler(); }
DefaultRestSourceHandler implements RestSourceHandler { @Override public List<Event> getEvents(String body, Map<String, String> headers) { List<Event> events = new ArrayList<Event>(0); events.add(EventBuilder.withBody(body, Charsets.UTF_8, headers)); return events; } DefaultRestSourceHandler(); @Override List<Event> getEvents(String body, Map<String, String> headers); @Override void configure(Context context); }
DefaultRestSourceHandler implements RestSourceHandler { @Override public List<Event> getEvents(String body, Map<String, String> headers) { List<Event> events = new ArrayList<Event>(0); events.add(EventBuilder.withBody(body, Charsets.UTF_8, headers)); return events; } DefaultRestSourceHandler(); @Override List<Event> getEvents(String body, Map<String, String> headers); @Override void configure(Context context);  }