@Test public void testGetEvents() throws ComponentLookupException { List<Event> events = this.mocker.getComponentUnderTest().getEvents(); Assert.assertEquals(1, events.size()); Assert.assertTrue(events.get(0).matches(new ApplicationStartedEvent())); }
@Override public List<Event> getEvents() { return Arrays.<Event>asList(new ApplicationStartedEvent()); }
ComponentManagerRegistry implements EventListener { @Override public List<Event> getEvents() { return Arrays.<Event>asList(new ApplicationStartedEvent()); } }
ComponentManagerRegistry implements EventListener { @Override public List<Event> getEvents() { return Arrays.<Event>asList(new ApplicationStartedEvent()); }  }
ComponentManagerRegistry implements EventListener { @Override public List<Event> getEvents() { return Arrays.<Event>asList(new ApplicationStartedEvent()); }  static ComponentManager getContextComponentManager(); @Override String getName(); @Override List<Event> getEvents(); @Override void onEvent(Event event, Object source, Object data); }
ComponentManagerRegistry implements EventListener { @Override public List<Event> getEvents() { return Arrays.<Event>asList(new ApplicationStartedEvent()); }  static ComponentManager getContextComponentManager(); @Override String getName(); @Override List<Event> getEvents(); @Override void onEvent(Event event, Object source, Object data);  }