WeeklyTrigger implements Trigger { @Override public String toString() { return Strings.format("weekly@{}/{}", dayOfWeek, time); } WeeklyTrigger(DayOfWeek dayOfWeek, LocalTime time); @Override ZonedDateTime next(ZonedDateTime previous); @Override String toString();  }
@Test void description() { WeeklyTrigger trigger = new WeeklyTrigger(DayOfWeek.WEDNESDAY, of(2, 0)); assertThat(trigger.toString()).isEqualTo("weekly@WEDNESDAY/02:00"); }