@Test public void assertRegister() throws SchedulerException { StatisticJob job = new TestStatisticJob(); statisticsScheduler.register(job); verify(scheduler).scheduleJob(job.buildJobDetail(), job.buildTrigger()); }
void register(final StatisticJob statisticJob) { try { JobDetail jobDetail = statisticJob.buildJobDetail(); jobDetail.getJobDataMap().putAll(statisticJob.getDataMap()); scheduler.scheduleJob(jobDetail, statisticJob.buildTrigger()); } catch (final SchedulerException ex) { throw new JobStatisticException(ex); } }
StatisticsScheduler { void register(final StatisticJob statisticJob) { try { JobDetail jobDetail = statisticJob.buildJobDetail(); jobDetail.getJobDataMap().putAll(statisticJob.getDataMap()); scheduler.scheduleJob(jobDetail, statisticJob.buildTrigger()); } catch (final SchedulerException ex) { throw new JobStatisticException(ex); } } }
StatisticsScheduler { void register(final StatisticJob statisticJob) { try { JobDetail jobDetail = statisticJob.buildJobDetail(); jobDetail.getJobDataMap().putAll(statisticJob.getDataMap()); scheduler.scheduleJob(jobDetail, statisticJob.buildTrigger()); } catch (final SchedulerException ex) { throw new JobStatisticException(ex); } } StatisticsScheduler(); }
StatisticsScheduler { void register(final StatisticJob statisticJob) { try { JobDetail jobDetail = statisticJob.buildJobDetail(); jobDetail.getJobDataMap().putAll(statisticJob.getDataMap()); scheduler.scheduleJob(jobDetail, statisticJob.buildTrigger()); } catch (final SchedulerException ex) { throw new JobStatisticException(ex); } } StatisticsScheduler();  }
StatisticsScheduler { void register(final StatisticJob statisticJob) { try { JobDetail jobDetail = statisticJob.buildJobDetail(); jobDetail.getJobDataMap().putAll(statisticJob.getDataMap()); scheduler.scheduleJob(jobDetail, statisticJob.buildTrigger()); } catch (final SchedulerException ex) { throw new JobStatisticException(ex); } } StatisticsScheduler();   }