use of org.quartz.impl.calendar.HolidayCalendar in project camel by apache.
the class QuartzCustomCalendarFireTest method createRegistry.
@Override
protected JndiRegistry createRegistry() throws Exception {
JndiRegistry jndi = super.createRegistry();
HolidayCalendar cal = new HolidayCalendar();
java.util.Calendar tomorrow = java.util.Calendar.getInstance();
tomorrow.setTime(new Date());
tomorrow.add(java.util.Calendar.DAY_OF_MONTH, 1);
cal.addExcludedDate(tomorrow.getTime());
jndi.bind("calendar", cal);
return jndi;
}
use of org.quartz.impl.calendar.HolidayCalendar in project camel by apache.
the class QuartzCustomCalendarNoFireTest method createRegistry.
@Override
protected JndiRegistry createRegistry() throws Exception {
JndiRegistry jndi = super.createRegistry();
HolidayCalendar cal = new HolidayCalendar();
cal.addExcludedDate(new Date());
jndi.bind("calendar", cal);
return jndi;
}
Aggregations