modify a test unit
This commit is contained in:
parent
07e210ffeb
commit
6ce934e767
|
@ -116,13 +116,13 @@ public class CalendarUtilTest {
|
|||
Calendar cal = CalendarUtil.constructCalendar(s4);
|
||||
assertNotNull(cal);
|
||||
int[] res = CalendarUtil.splitCalendar(cal);
|
||||
int[] exp = new int[]{2018, 4, 2, 11, 30, 0, 0};
|
||||
int[] exp = new int[]{2018, 5, 2, 11, 30, 0, 0};
|
||||
assertArrayEquals(exp, res);
|
||||
|
||||
cal = CalendarUtil.constructCalendar(s1, s2);
|
||||
assertNotNull(cal);
|
||||
res = CalendarUtil.splitCalendar(cal);
|
||||
exp = new int[]{2018, 4, 2, 11, 30, 0, 0};
|
||||
exp = new int[]{2018, 5, 2, 11, 30, 0, 0};
|
||||
assertArrayEquals(exp, res);
|
||||
|
||||
cal = CalendarUtil.constructCalendar(s3 + '/' + s2);
|
||||
|
|
Loading…
Reference in New Issue