@Test public void getEvents() throws Exception { List<Event> results = mocker.getComponentUnderTest().getEvents(); assertEquals(2, results.size()); assertTrue(results.get(0) instanceof DocumentUpdatedEvent); assertTrue(results.get(1) instanceof DocumentDeletedEvent); }
@Override public List<Event> getEvents() { return Arrays.<Event>asList( new DocumentUpdatedEvent(), new DocumentDeletedEvent()); }
IconThemeListener implements EventListener { @Override public List<Event> getEvents() { return Arrays.<Event>asList( new DocumentUpdatedEvent(), new DocumentDeletedEvent()); } }
IconThemeListener implements EventListener { @Override public List<Event> getEvents() { return Arrays.<Event>asList( new DocumentUpdatedEvent(), new DocumentDeletedEvent()); }  }
IconThemeListener implements EventListener { @Override public List<Event> getEvents() { return Arrays.<Event>asList( new DocumentUpdatedEvent(), new DocumentDeletedEvent()); }  @Override String getName(); @Override List<Event> getEvents(); @Override void onEvent(Event event, Object source, Object data); }
IconThemeListener implements EventListener { @Override public List<Event> getEvents() { return Arrays.<Event>asList( new DocumentUpdatedEvent(), new DocumentDeletedEvent()); }  @Override String getName(); @Override List<Event> getEvents(); @Override void onEvent(Event event, Object source, Object data);  }