@Test public void handleApplicationReadyEventTest() { ApplicationReadyEvent applicationReadyEventMock = mock(ApplicationReadyEvent.class); processApplicationEventPublisher.handleApplicationReadyEvent(applicationReadyEventMock); verify(publisherMock).publishEvent(Mockito.any(ProcessApplicationStartedEvent.class)); }
@EventListener public void handleApplicationReadyEvent(final ApplicationReadyEvent applicationReadyEvent) { publisher.publishEvent(new ProcessApplicationStartedEvent(applicationReadyEvent)); }
ProcessApplicationEventPublisher implements ApplicationContextAware { @EventListener public void handleApplicationReadyEvent(final ApplicationReadyEvent applicationReadyEvent) { publisher.publishEvent(new ProcessApplicationStartedEvent(applicationReadyEvent)); } }
ProcessApplicationEventPublisher implements ApplicationContextAware { @EventListener public void handleApplicationReadyEvent(final ApplicationReadyEvent applicationReadyEvent) { publisher.publishEvent(new ProcessApplicationStartedEvent(applicationReadyEvent)); } ProcessApplicationEventPublisher(final ApplicationEventPublisher publisher); }
ProcessApplicationEventPublisher implements ApplicationContextAware { @EventListener public void handleApplicationReadyEvent(final ApplicationReadyEvent applicationReadyEvent) { publisher.publishEvent(new ProcessApplicationStartedEvent(applicationReadyEvent)); } ProcessApplicationEventPublisher(final ApplicationEventPublisher publisher); @EventListener void handleApplicationReadyEvent(final ApplicationReadyEvent applicationReadyEvent); @EventListener void handleContextStoppedEvent(final ContextClosedEvent contextStoppedEvent); @Override void setApplicationContext(ApplicationContext applicationContext); }
ProcessApplicationEventPublisher implements ApplicationContextAware { @EventListener public void handleApplicationReadyEvent(final ApplicationReadyEvent applicationReadyEvent) { publisher.publishEvent(new ProcessApplicationStartedEvent(applicationReadyEvent)); } ProcessApplicationEventPublisher(final ApplicationEventPublisher publisher); @EventListener void handleApplicationReadyEvent(final ApplicationReadyEvent applicationReadyEvent); @EventListener void handleContextStoppedEvent(final ContextClosedEvent contextStoppedEvent); @Override void setApplicationContext(ApplicationContext applicationContext);  }