mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix code
This commit is contained in:
@@ -1,15 +1,14 @@
|
||||
package cn.hutool.cron.pattern;
|
||||
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
|
||||
public class CronPatternUtilTest {
|
||||
|
||||
|
||||
@Test
|
||||
public void matchedDatesTest() {
|
||||
//测试每30秒执行
|
||||
@@ -21,7 +20,7 @@ public class CronPatternUtilTest {
|
||||
Assert.assertEquals("2018-10-15 14:35:00", matchedDates.get(3).toString());
|
||||
Assert.assertEquals("2018-10-15 14:35:30", matchedDates.get(4).toString());
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void matchedDatesTest2() {
|
||||
//测试每小时执行
|
||||
@@ -33,7 +32,7 @@ public class CronPatternUtilTest {
|
||||
Assert.assertEquals("2018-10-15 18:00:00", matchedDates.get(3).toString());
|
||||
Assert.assertEquals("2018-10-15 19:00:00", matchedDates.get(4).toString());
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void matchedDatesTest3() {
|
||||
//测试最后一天
|
||||
|
Reference in New Issue
Block a user