@Test public void testGenerateDailyScheduleInDifferentDaysBounds() throws Exception { int startHour = 22; int endHour = 5; List<Integer> expectedHours = Arrays.asList(22, 23, 0, 1, 2, 3, 4); String cron = CronSchedules.generateDailySchedule(startHour, endHour); testCommon(cron); testBounds(cron, expectedHours); String otherCron = CronSchedules.generateDailySchedule(); assertNotEquals(otherCron, cron); }
public static String generateDailySchedule() { return random.nextInt(60) + " " + random.nextInt(60) + " " + random.nextInt(24) + " * * ? *"; }
CronSchedules { public static String generateDailySchedule() { return random.nextInt(60) + " " + random.nextInt(60) + " " + random.nextInt(24) + " * * ? *"; } }
CronSchedules { public static String generateDailySchedule() { return random.nextInt(60) + " " + random.nextInt(60) + " " + random.nextInt(24) + " * * ? *"; } private  CronSchedules(); }
CronSchedules { public static String generateDailySchedule() { return random.nextInt(60) + " " + random.nextInt(60) + " " + random.nextInt(24) + " * * ? *"; } private  CronSchedules(); static String generateDailySchedule(); static String generateDailySchedule(int startHour, int endHour); }
CronSchedules { public static String generateDailySchedule() { return random.nextInt(60) + " " + random.nextInt(60) + " " + random.nextInt(24) + " * * ? *"; } private  CronSchedules(); static String generateDailySchedule(); static String generateDailySchedule(int startHour, int endHour);  }