@Test public void testGenerateDailyScheduleInBounds() throws Exception { int startHour = 10; int endHour = 12; List<Integer> expectedHours = Arrays.asList(10, 11); 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);  }