@Test void prepareForReplay_willDeleteAllProjections() { organizationsEventHandler.prepareForReplay(); verify(organizationsRepository).deleteAll(); }
@ResetHandler public void prepareForReplay() { LOGGER.info("{} deleting projections", OrganizationsEventHandler.class.getSimpleName()); organizationsRepository.deleteAll(); }
OrganizationsEventHandler implements ReplayCompletionAware { @ResetHandler public void prepareForReplay() { LOGGER.info("{} deleting projections", OrganizationsEventHandler.class.getSimpleName()); organizationsRepository.deleteAll(); } }
OrganizationsEventHandler implements ReplayCompletionAware { @ResetHandler public void prepareForReplay() { LOGGER.info("{} deleting projections", OrganizationsEventHandler.class.getSimpleName()); organizationsRepository.deleteAll(); } @Autowired  OrganizationsEventHandler(OrganizationsRepository organizationsRepository); }
OrganizationsEventHandler implements ReplayCompletionAware { @ResetHandler public void prepareForReplay() { LOGGER.info("{} deleting projections", OrganizationsEventHandler.class.getSimpleName()); organizationsRepository.deleteAll(); } @Autowired  OrganizationsEventHandler(OrganizationsRepository organizationsRepository); @ResetHandler void prepareForReplay(); }
OrganizationsEventHandler implements ReplayCompletionAware { @ResetHandler public void prepareForReplay() { LOGGER.info("{} deleting projections", OrganizationsEventHandler.class.getSimpleName()); organizationsRepository.deleteAll(); } @Autowired  OrganizationsEventHandler(OrganizationsRepository organizationsRepository); @ResetHandler void prepareForReplay();  }