Fix test for daylight savings glitch

This commit is contained in:
Dave Syer
2013-03-10 10:03:15 -07:00
parent 3654a620fb
commit 5b6f149bf8
2 changed files with 3 additions and 2 deletions

View File

@@ -422,8 +422,8 @@ public class CronTriggerTests {
@Test
public void testSpecificHourSecond() throws Exception {
CronTrigger trigger = new CronTrigger("55 * 2 * * *", timeZone);
calendar.set(Calendar.HOUR_OF_DAY, 1);
CronTrigger trigger = new CronTrigger("55 * 10 * * *", timeZone);
calendar.set(Calendar.HOUR_OF_DAY, 9);
calendar.set(Calendar.SECOND, 54);
Date date = calendar.getTime();
TriggerContext context1 = getTriggerContext(date);