mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix bug
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
package cn.hutool.cron.pattern;
|
||||
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
import cn.hutool.core.date.Week;
|
||||
import cn.hutool.core.lang.Console;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
||||
import java.util.Calendar;
|
||||
@@ -19,4 +21,13 @@ public class CronPatternNextMatchTest {
|
||||
Console.log(DateUtil.date(calendar));
|
||||
Assert.assertTrue(pattern.match(calendar, true));
|
||||
}
|
||||
|
||||
@Test
|
||||
@Ignore
|
||||
public void calendarTest(){
|
||||
final Calendar ca = Calendar.getInstance();
|
||||
ca.set(Calendar.DAY_OF_WEEK, Week.SATURDAY.getValue());
|
||||
|
||||
Console.log(DateUtil.date(ca));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user