@Test public void publishEvent() { Object event = new Object(); verify(listener, times(0)).on(event); testSubject.publishEvent(event); verify(listener, times(1)).on(event); }
@Override public void publishEvent(@Nonnull Object event) { this.eventPublisher.publishEvent(event); }
LocalEventPublisher implements AxonServerEventPublisher { @Override public void publishEvent(@Nonnull Object event) { this.eventPublisher.publishEvent(event); } }
LocalEventPublisher implements AxonServerEventPublisher { @Override public void publishEvent(@Nonnull Object event) { this.eventPublisher.publishEvent(event); } LocalEventPublisher(@Qualifier("applicationEventPublisher") ApplicationEventPublisher eventPublisher); }
LocalEventPublisher implements AxonServerEventPublisher { @Override public void publishEvent(@Nonnull Object event) { this.eventPublisher.publishEvent(event); } LocalEventPublisher(@Qualifier("applicationEventPublisher") ApplicationEventPublisher eventPublisher); @Override void publishEvent(@Nonnull Object event); }
LocalEventPublisher implements AxonServerEventPublisher { @Override public void publishEvent(@Nonnull Object event) { this.eventPublisher.publishEvent(event); } LocalEventPublisher(@Qualifier("applicationEventPublisher") ApplicationEventPublisher eventPublisher); @Override void publishEvent(@Nonnull Object event);  }