SchedulerHelper { public JobDetail getJobDetail(String jobName) throws SchedulerException { return getJobDetail(jobName, DEFAULT_GROUP); }  void scheduleJob(IbisManager ibisManager, JobDef jobdef); void scheduleJob(JobDetail jobDetail, String cronExpression); void scheduleJob(JobDetail jobDetail, long interval); void scheduleJob(JobDetail jobDetail, String cronExpression, long interval, boolean overwrite); boolean contains(String name); boolean contains(String name, String group); Trigger getTrigger(String name); Trigger getTrigger(String name, String group); JobDetail getJobDetail(String jobName); JobDetail getJobDetail(String jobName, String jobGroup); void deleteTrigger(JobDef jobDef); void deleteTrigger(String jobName); void deleteTrigger(String name, String group); Scheduler getScheduler(); void setScheduler(Scheduler scheduler); void startScheduler(); static final String DEFAULT_GROUP; }
@Test public void testGetJobDetail() throws SchedulerException, ParseException { schedulerHelper.scheduleJob(createServiceJob("testJob"), 1000); JobDetail result = schedulerHelper.getJobDetail("testJob"); assertNotNull(result); assertEquals("testJob", result.getKey().getName()); }