@Test public void shouldBuildCronExpressionForAParticularDayOfWeek() { WeeklyCronJobExpressionBuilder weeklyCronJobExpressionBuilder = new WeeklyCronJobExpressionBuilder(DayOfWeek.Friday); Assert.assertEquals("0 0 0 ? * 6", weeklyCronJobExpressionBuilder.build()); }
public String build() { final String cronExpression = "0 %d %d ? * %d"; return String.format(cronExpression, minute, hour, quartzDayOfWeek); }
WeeklyCronJobExpressionBuilder { public String build() { final String cronExpression = "0 %d %d ? * %d"; return String.format(cronExpression, minute, hour, quartzDayOfWeek); } }
WeeklyCronJobExpressionBuilder { public String build() { final String cronExpression = "0 %d %d ? * %d"; return String.format(cronExpression, minute, hour, quartzDayOfWeek); } WeeklyCronJobExpressionBuilder(DayOfWeek dayOfWeek);  WeeklyCronJobExpressionBuilder(int dayOfWeekNumber); }
WeeklyCronJobExpressionBuilder { public String build() { final String cronExpression = "0 %d %d ? * %d"; return String.format(cronExpression, minute, hour, quartzDayOfWeek); } WeeklyCronJobExpressionBuilder(DayOfWeek dayOfWeek);  WeeklyCronJobExpressionBuilder(int dayOfWeekNumber); WeeklyCronJobExpressionBuilder withTime(Time time); String build(); }
WeeklyCronJobExpressionBuilder { public String build() { final String cronExpression = "0 %d %d ? * %d"; return String.format(cronExpression, minute, hour, quartzDayOfWeek); } WeeklyCronJobExpressionBuilder(DayOfWeek dayOfWeek);  WeeklyCronJobExpressionBuilder(int dayOfWeekNumber); WeeklyCronJobExpressionBuilder withTime(Time time); String build();  }