@Test public void unregisterSchedulerForJobTest() { doNothing().when(this.beanRegistrar).unregisterBean(anyString()); this.schedulerService.unregisterSchedulerForJob("sampleJob"); verify(this.beanRegistrar, times(1)).unregisterBean("sampleJob"); }
@Override public void unregisterSchedulerForJob(final String beanName) { this.beanRegistrar.unregisterBean(beanName); }
DefaultSchedulerService implements SchedulerService { @Override public void unregisterSchedulerForJob(final String beanName) { this.beanRegistrar.unregisterBean(beanName); } }
DefaultSchedulerService implements SchedulerService { @Override public void unregisterSchedulerForJob(final String beanName) { this.beanRegistrar.unregisterBean(beanName); } DefaultSchedulerService(final BeanRegistrar beanRegistrar,
                                   final JobRepository jobRepository,
                                   final JobRegistry jobRegistry); }
DefaultSchedulerService implements SchedulerService { @Override public void unregisterSchedulerForJob(final String beanName) { this.beanRegistrar.unregisterBean(beanName); } DefaultSchedulerService(final BeanRegistrar beanRegistrar,
                                   final JobRepository jobRepository,
                                   final JobRegistry jobRegistry); @Autowired void setApplicationContext(final ApplicationContext applicationContext); @Override String registerSchedulerForJob(final JobConfiguration jobConfiguration); @Override void unregisterSchedulerForJob(final String beanName); @Override void refreshSchedulerForJob(final JobConfiguration jobConfiguration); @Override void schedule(final String beanName, final Boolean forceScheduling); @Override void terminate(final String beanName); @Override SchedulerStatus getSchedulerStatus(final String beanName); @Override void afterPropertiesSet(); @Override JobLauncher createLobLauncher(final TaskExecutorType taskExecutorType, final JobRepository jobRepository); }
DefaultSchedulerService implements SchedulerService { @Override public void unregisterSchedulerForJob(final String beanName) { this.beanRegistrar.unregisterBean(beanName); } DefaultSchedulerService(final BeanRegistrar beanRegistrar,
                                   final JobRepository jobRepository,
                                   final JobRegistry jobRegistry); @Autowired void setApplicationContext(final ApplicationContext applicationContext); @Override String registerSchedulerForJob(final JobConfiguration jobConfiguration); @Override void unregisterSchedulerForJob(final String beanName); @Override void refreshSchedulerForJob(final JobConfiguration jobConfiguration); @Override void schedule(final String beanName, final Boolean forceScheduling); @Override void terminate(final String beanName); @Override SchedulerStatus getSchedulerStatus(final String beanName); @Override void afterPropertiesSet(); @Override JobLauncher createLobLauncher(final TaskExecutorType taskExecutorType, final JobRepository jobRepository);  }