SchedulerHelper { public void deleteTrigger(JobDef jobDef) throws SchedulerException { deleteTrigger(jobDef.getName(), jobDef.getJobGroup()); }  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 testDeleteTrigger() throws SchedulerException, ParseException { schedulerHelper.scheduleJob(createServiceJob("target", null), 1000); schedulerHelper.scheduleJob(createServiceJob("target", "something"), 1000); schedulerHelper.deleteTrigger("target", "something"); assertFalse(schedulerHelper.contains("target", "something")); assertTrue(schedulerHelper.contains("target", null)); }