@Test void prepareForReplay_willDeleteAllProjections() { usersEventHandler.prepareForReplay(); verify(usersRepository).deleteByIdNot(ADMIN_ID); }
@ResetHandler public void prepareForReplay() { LOGGER.info("{} deleting projections", UsersEventHandler.class.getSimpleName()); usersRepository.deleteByIdNot(ADMIN_ID); }
UsersEventHandler implements ReplayCompletionAware { @ResetHandler public void prepareForReplay() { LOGGER.info("{} deleting projections", UsersEventHandler.class.getSimpleName()); usersRepository.deleteByIdNot(ADMIN_ID); } }
UsersEventHandler implements ReplayCompletionAware { @ResetHandler public void prepareForReplay() { LOGGER.info("{} deleting projections", UsersEventHandler.class.getSimpleName()); usersRepository.deleteByIdNot(ADMIN_ID); } @Autowired  UsersEventHandler(UsersRepository usersRepository); }
UsersEventHandler implements ReplayCompletionAware { @ResetHandler public void prepareForReplay() { LOGGER.info("{} deleting projections", UsersEventHandler.class.getSimpleName()); usersRepository.deleteByIdNot(ADMIN_ID); } @Autowired  UsersEventHandler(UsersRepository usersRepository); @ResetHandler void prepareForReplay(); }
UsersEventHandler implements ReplayCompletionAware { @ResetHandler public void prepareForReplay() { LOGGER.info("{} deleting projections", UsersEventHandler.class.getSimpleName()); usersRepository.deleteByIdNot(ADMIN_ID); } @Autowired  UsersEventHandler(UsersRepository usersRepository); @ResetHandler void prepareForReplay();  }