use of org.quartz.JobDataMap in project ddf by codice.
the class CommandJobTest method getJobExecutionContext.
private JobExecutionContext getJobExecutionContext(String command) {
JobExecutionContext context = mock(JobExecutionContext.class);
JobDataMap jobDataMap = new JobDataMap();
jobDataMap.put(CommandJob.COMMAND_KEY, command);
when(context.getMergedJobDataMap()).thenReturn(jobDataMap);
return context;
}
Aggregations