SchedulerHelper { public boolean contains(String name) throws SchedulerException { return contains(name, null); }  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 testContains() throws SchedulerException, ParseException { schedulerHelper.scheduleJob(createServiceJob("target", "some-group"), 1000); assertTrue(schedulerHelper.contains("target", "some-group")); assertFalse(schedulerHelper.contains("target", SchedulerHelper.DEFAULT_GROUP)); }