@Test public void testBuild_SetEndHourAsTwentyThreeIfReminderWindowExtendsBeyondTheCurrentDay() { String cronJobExpression = new CronJobExpressionBuilder(new Time(9, 15), 21, 15).build(); assertEquals("0 15/15 9-23 * * ?", cronJobExpression); }
public String build() { return String.format(CRON_JOB_EXPR, startTime.getMinute(), repeatIntervalInMinutes, startTime.getHour(), getEndHour()); }
CronJobExpressionBuilder { public String build() { return String.format(CRON_JOB_EXPR, startTime.getMinute(), repeatIntervalInMinutes, startTime.getHour(), getEndHour()); } }
CronJobExpressionBuilder { public String build() { return String.format(CRON_JOB_EXPR, startTime.getMinute(), repeatIntervalInMinutes, startTime.getHour(), getEndHour()); } CronJobExpressionBuilder(Time startTime, Integer repeatWindowInHours, Integer repeatIntervalInMinutes); }
CronJobExpressionBuilder { public String build() { return String.format(CRON_JOB_EXPR, startTime.getMinute(), repeatIntervalInMinutes, startTime.getHour(), getEndHour()); } CronJobExpressionBuilder(Time startTime, Integer repeatWindowInHours, Integer repeatIntervalInMinutes); String build(); }
CronJobExpressionBuilder { public String build() { return String.format(CRON_JOB_EXPR, startTime.getMinute(), repeatIntervalInMinutes, startTime.getHour(), getEndHour()); } CronJobExpressionBuilder(Time startTime, Integer repeatWindowInHours, Integer repeatIntervalInMinutes); String build();  }