提交 88b9bea0 编写于 作者: C Chris Beams

Merge pull request #250 from dsyer/feature/crontest

Fix test for daylight savings glitch
...@@ -19,6 +19,7 @@ pom.xml ...@@ -19,6 +19,7 @@ pom.xml
/build /build
buildSrc/build buildSrc/build
/spring-*/build /spring-*/build
target/
# Eclipse artifacts, including WTP generated manifests # Eclipse artifacts, including WTP generated manifests
.classpath .classpath
......
...@@ -422,8 +422,8 @@ public class CronTriggerTests { ...@@ -422,8 +422,8 @@ public class CronTriggerTests {
@Test @Test
public void testSpecificHourSecond() throws Exception { public void testSpecificHourSecond() throws Exception {
CronTrigger trigger = new CronTrigger("55 * 2 * * *", timeZone); CronTrigger trigger = new CronTrigger("55 * 10 * * *", timeZone);
calendar.set(Calendar.HOUR_OF_DAY, 1); calendar.set(Calendar.HOUR_OF_DAY, 9);
calendar.set(Calendar.SECOND, 54); calendar.set(Calendar.SECOND, 54);
Date date = calendar.getTime(); Date date = calendar.getTime();
TriggerContext context1 = getTriggerContext(date); TriggerContext context1 = getTriggerContext(date);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册