CronJobTrigger implements JobTrigger { public CronJobTrigger() { init(); } CronJobTrigger();  CronJobTrigger(String entry); @Override Object clone(); void reset(); Date getNextExecutionAfter(Date date); void triggered(Date date); int[] getMinutes(); void setMinutes(int[] minutes); void setMinutes(String minutes); int[] getHours(); void setHours(int[] hours); void setHours(String hours); int[] getMonths(); void setMonths(int[] months); void setMonths(String months); int[] getDaysOfMonth(); void setDaysOfMonth(int[] daysOfMonth); void setDaysOfMonth(String daysOfMonth); int[] getDaysOfWeek(); void setDaysOfWeek(int[] daysOfWeek); void setDaysOfWeek(String daysOfWeek); Object getCronExpression(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }
@Test public void testCronJobTrigger() { Date now = new Date(); CronJobTrigger emptyTrigger = new CronJobTrigger(); Calendar c = Calendar.getInstance(); c.set(Calendar.SECOND, 0); c.set(Calendar.MILLISECOND, 0); c.add(Calendar.MINUTE, 1); Date triggerDate = c.getTime(); assertEquals(triggerDate, emptyTrigger.getNextExecutionAfter(now)); }