-
Notifications
You must be signed in to change notification settings - Fork 0
/
JapanDateTest.cls
36 lines (27 loc) · 1.03 KB
/
JapanDateTest.cls
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
@isTest
private class JapanDateTest {
@isTest
private static void testMethod() {
JapanDate jd1 = JapanDate.newInstance(2011, 10, 10);
JapanDate jd2 = JapanDate.newInstance(2019, 4, 30);
JapanDate jd3 = JapanDate.newInstance(2019, 12, 11);
JapanDate jd4 = JapanDate.newInstance(1990, 1, 1);
JapanDate jd5 = JapanDate.newInstance(2019, 8, 12);
JapanDate jd6 = JapanDate.newInstance(2019, 9, 23);
JapanDate jd7 = JapanDate.newInstance(2019, 3, 21);
System.debug(jd1.isHoliday());
System.debug(jd1.holiday());
System.debug(jd2.isHoliday());
System.debug(jd2.holiday());
System.debug(jd3.isHoliday());
System.debug(jd3.holiday());
System.debug(jd4.isHoliday());
System.debug(jd4.holiday());
System.debug(jd5.isHoliday());
System.debug(jd5.holiday());
System.debug(jd6.isHoliday());
System.debug(jd6.holiday());
System.debug(jd7.isHoliday());
System.debug(jd7.holiday());
}
}