-
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: XSpielinbox <[email protected]>
- Loading branch information
1 parent
a9e4404
commit b15ccc2
Showing
16 changed files
with
527 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
233 changes: 233 additions & 0 deletions
233
jollyday-core/src/main/resources/holidays/Holidays_sg.xml
Large diffs are not rendered by default.
Oops, something went wrong.
66 changes: 66 additions & 0 deletions
66
jollyday-tests/src/test/java/de/focus_shift/tests/HolidaysSGTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
package de.focus_shift.tests; | ||
|
||
import de.focus_shift.Holiday; | ||
import de.focus_shift.HolidayCalendar; | ||
import de.focus_shift.HolidayManager; | ||
import de.focus_shift.ManagerParameters; | ||
import de.focus_shift.tests.base.AbstractCountryTestBase; | ||
import de.focus_shift.util.CalendarUtil; | ||
import org.junit.jupiter.api.Test; | ||
import org.junit.jupiter.params.ParameterizedTest; | ||
import org.junit.jupiter.params.provider.ValueSource; | ||
|
||
import java.time.LocalDate; | ||
import java.util.List; | ||
import java.util.Locale; | ||
import java.util.Set; | ||
|
||
import static org.assertj.core.api.Assertions.assertThat; | ||
import static org.junit.jupiter.api.Assertions.fail; | ||
|
||
public class HolidaysSGTest extends AbstractCountryTestBase { | ||
|
||
private static final String ISO_CODE = "sg"; | ||
|
||
private final CalendarUtil calendarUtil = new CalendarUtil(); | ||
|
||
@ParameterizedTest | ||
@ValueSource(ints = {2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024}) | ||
void testManagerVGStructure(final int year) { | ||
validateCalendarData(ISO_CODE, year, true); | ||
} | ||
|
||
@Test | ||
void testManagerVGInterval() { | ||
try { | ||
final HolidayManager instance = HolidayManager.getInstance(ManagerParameters.create(HolidayCalendar.SINGAPORE, null)); | ||
final LocalDate startDateInclusive = calendarUtil.create(2022, 10, 1); | ||
final LocalDate endDateInclusive = calendarUtil.create(2023, 1, 31); | ||
final Set<Holiday> holidays = instance.getHolidays(startDateInclusive, endDateInclusive); | ||
final List<LocalDate> expected = List.of(calendarUtil.create(2022, 10, 24), | ||
calendarUtil.create(2022, 12, 26), calendarUtil.create(2023, 1, 2), | ||
calendarUtil.create(2023, 1, 24), calendarUtil.create(2023, 1, 23)); | ||
assertThat(holidays).hasSameSizeAs(expected); | ||
for (LocalDate d : expected) { | ||
assertThat(calendarUtil.contains(holidays, d)).isTrue(); | ||
} | ||
} catch (Exception e) { | ||
fail("Unexpected error occurred: " + e.getClass().getName() + " - " + e.getMessage()); | ||
} | ||
} | ||
|
||
@Test | ||
void testManagerDifferentInstance() { | ||
final Locale defaultLocale = Locale.getDefault(); | ||
Locale.setDefault(Locale.US); | ||
try { | ||
final HolidayManager defaultManager = HolidayManager.getInstance(); | ||
final HolidayManager virginIslandsManager = HolidayManager.getInstance(ManagerParameters.create(HolidayCalendar.SINGAPORE, null)); | ||
assertThat(defaultManager).isNotEqualTo(virginIslandsManager); | ||
} catch (Exception e) { | ||
fail("Unexpected error occurred: " + e.getClass().getName() + " - " + e.getMessage()); | ||
} finally { | ||
Locale.setDefault(defaultLocale); | ||
} | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
jollyday-tests/src/test/resources/holidays/Holidays_test_sg_2013.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<tns:Configuration hierarchy="sg" description="Singapore" xmlns:tns="http://www.example.org/Holiday" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://www.example.org/Holiday /Holiday.xsd"> | ||
<tns:Holidays> | ||
<tns:Fixed month="JANUARY" day="1" descriptionPropertiesKey="NEW_YEAR"/> | ||
<tns:Fixed month="FEBRUARY" day="12" descriptionPropertiesKey="CHINESE_NEW_YEAR"/> | ||
<tns:Fixed month="FEBRUARY" day="11" descriptionPropertiesKey="CHINESE_NEW_YEAR"/> | ||
<tns:Fixed month="MARCH" day="29" descriptionPropertiesKey="christian.GOOD_FRIDAY"/> | ||
<tns:Fixed month="MAY" day="1" descriptionPropertiesKey="LABOUR_DAY"/> | ||
<tns:Fixed month="MAY" day="24" descriptionPropertiesKey="VESAK_DAY"/> | ||
<tns:Fixed month="AUGUST" day="8" descriptionPropertiesKey="HARI_RAYA_PUASA"/> | ||
<tns:Fixed month="AUGUST" day="9" descriptionPropertiesKey="NATIONAL_DAY"/> | ||
<tns:Fixed month="OCTOBER" day="15" descriptionPropertiesKey="HARI_RAYA_HAJI"/> | ||
<tns:Fixed month="NOVEMBER" day="2" descriptionPropertiesKey="DEEPAVALI"/> | ||
<tns:Fixed month="DECEMBER" day="25" descriptionPropertiesKey="CHRISTMAS"/> | ||
</tns:Holidays> | ||
</tns:Configuration> |
18 changes: 18 additions & 0 deletions
18
jollyday-tests/src/test/resources/holidays/Holidays_test_sg_2014.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<tns:Configuration hierarchy="sg" description="Singapore" xmlns:tns="http://www.example.org/Holiday" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://www.example.org/Holiday /Holiday.xsd"> | ||
<tns:Holidays> | ||
<tns:Fixed month="JANUARY" day="1" descriptionPropertiesKey="NEW_YEAR"/> | ||
<tns:Fixed month="JANUARY" day="31" descriptionPropertiesKey="CHINESE_NEW_YEAR"/> | ||
<tns:Fixed month="FEBRUARY" day="1" descriptionPropertiesKey="CHINESE_NEW_YEAR"/> | ||
<tns:Fixed month="APRIL" day="18" descriptionPropertiesKey="christian.GOOD_FRIDAY"/> | ||
<tns:Fixed month="MAY" day="1" descriptionPropertiesKey="LABOUR_DAY"/> | ||
<tns:Fixed month="MAY" day="13" descriptionPropertiesKey="VESAK_DAY"/> | ||
<tns:Fixed month="JULY" day="28" descriptionPropertiesKey="HARI_RAYA_PUASA"/> | ||
<tns:Fixed month="AUGUST" day="9" descriptionPropertiesKey="NATIONAL_DAY"/> | ||
<tns:Fixed month="OCTOBER" day="6" descriptionPropertiesKey="HARI_RAYA_HAJI"/> | ||
<tns:Fixed month="OCTOBER" day="22" descriptionPropertiesKey="DEEPAVALI"/> | ||
<tns:Fixed month="DECEMBER" day="25" descriptionPropertiesKey="CHRISTMAS"/> | ||
</tns:Holidays> | ||
</tns:Configuration> |
20 changes: 20 additions & 0 deletions
20
jollyday-tests/src/test/resources/holidays/Holidays_test_sg_2015.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<tns:Configuration hierarchy="sg" description="Singapore" xmlns:tns="http://www.example.org/Holiday" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://www.example.org/Holiday /Holiday.xsd"> | ||
<tns:Holidays> | ||
<tns:Fixed month="JANUARY" day="1" descriptionPropertiesKey="NEW_YEAR"/> | ||
<tns:Fixed month="FEBRUARY" day="19" descriptionPropertiesKey="CHINESE_NEW_YEAR"/> | ||
<tns:Fixed month="FEBRUARY" day="20" descriptionPropertiesKey="CHINESE_NEW_YEAR"/> | ||
<tns:Fixed month="APRIL" day="3" descriptionPropertiesKey="christian.GOOD_FRIDAY"/> | ||
<tns:Fixed month="MAY" day="1" descriptionPropertiesKey="LABOUR_DAY"/> | ||
<tns:Fixed month="JUNE" day="1" descriptionPropertiesKey="VESAK_DAY"/> | ||
<tns:Fixed month="JULY" day="17" descriptionPropertiesKey="HARI_RAYA_PUASA"/> | ||
<tns:Fixed month="AUGUST" day="7" descriptionPropertiesKey="SG50_PUBLIC_HOLIDAY"/> | ||
<tns:Fixed month="AUGUST" day="10" descriptionPropertiesKey="NATIONAL_DAY"/> | ||
<tns:Fixed month="SEPTEMBER" day="11" descriptionPropertiesKey="POLLING_DAY"/> | ||
<tns:Fixed month="SEPTEMBER" day="24" descriptionPropertiesKey="HARI_RAYA_HAJI"/> | ||
<tns:Fixed month="NOVEMBER" day="10" descriptionPropertiesKey="DEEPAVALI"/> | ||
<tns:Fixed month="DECEMBER" day="25" descriptionPropertiesKey="CHRISTMAS"/> | ||
</tns:Holidays> | ||
</tns:Configuration> |
18 changes: 18 additions & 0 deletions
18
jollyday-tests/src/test/resources/holidays/Holidays_test_sg_2016.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<tns:Configuration hierarchy="sg" description="Singapore" xmlns:tns="http://www.example.org/Holiday" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://www.example.org/Holiday /Holiday.xsd"> | ||
<tns:Holidays> | ||
<tns:Fixed month="JANUARY" day="1" descriptionPropertiesKey="NEW_YEAR"/> | ||
<tns:Fixed month="FEBRUARY" day="8" descriptionPropertiesKey="CHINESE_NEW_YEAR"/> | ||
<tns:Fixed month="FEBRUARY" day="9" descriptionPropertiesKey="CHINESE_NEW_YEAR"/> | ||
<tns:Fixed month="MARCH" day="25" descriptionPropertiesKey="christian.GOOD_FRIDAY"/> | ||
<tns:Fixed month="MAY" day="2" descriptionPropertiesKey="LABOUR_DAY"/> | ||
<tns:Fixed month="MAY" day="21" descriptionPropertiesKey="VESAK_DAY"/> | ||
<tns:Fixed month="JULY" day="6" descriptionPropertiesKey="HARI_RAYA_PUASA"/> | ||
<tns:Fixed month="AUGUST" day="9" descriptionPropertiesKey="NATIONAL_DAY"/> | ||
<tns:Fixed month="SEPTEMBER" day="12" descriptionPropertiesKey="HARI_RAYA_HAJI"/> | ||
<tns:Fixed month="OCTOBER" day="29" descriptionPropertiesKey="DEEPAVALI"/> | ||
<tns:Fixed month="DECEMBER" day="26" descriptionPropertiesKey="CHRISTMAS"/> | ||
</tns:Holidays> | ||
</tns:Configuration> |
18 changes: 18 additions & 0 deletions
18
jollyday-tests/src/test/resources/holidays/Holidays_test_sg_2017.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<tns:Configuration hierarchy="sg" description="Singapore" xmlns:tns="http://www.example.org/Holiday" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://www.example.org/Holiday /Holiday.xsd"> | ||
<tns:Holidays> | ||
<tns:Fixed month="JANUARY" day="2" descriptionPropertiesKey="NEW_YEAR"/> | ||
<tns:Fixed month="JANUARY" day="28" descriptionPropertiesKey="CHINESE_NEW_YEAR"/> | ||
<tns:Fixed month="JANUARY" day="30" descriptionPropertiesKey="CHINESE_NEW_YEAR"/> | ||
<tns:Fixed month="APRIL" day="14" descriptionPropertiesKey="christian.GOOD_FRIDAY"/> | ||
<tns:Fixed month="MAY" day="1" descriptionPropertiesKey="LABOUR_DAY"/> | ||
<tns:Fixed month="MAY" day="10" descriptionPropertiesKey="VESAK_DAY"/> | ||
<tns:Fixed month="JUNE" day="26" descriptionPropertiesKey="HARI_RAYA_PUASA"/> | ||
<tns:Fixed month="AUGUST" day="9" descriptionPropertiesKey="NATIONAL_DAY"/> | ||
<tns:Fixed month="SEPTEMBER" day="1" descriptionPropertiesKey="HARI_RAYA_HAJI"/> | ||
<tns:Fixed month="OCTOBER" day="18" descriptionPropertiesKey="DEEPAVALI"/> | ||
<tns:Fixed month="DECEMBER" day="25" descriptionPropertiesKey="CHRISTMAS"/> | ||
</tns:Holidays> | ||
</tns:Configuration> |
18 changes: 18 additions & 0 deletions
18
jollyday-tests/src/test/resources/holidays/Holidays_test_sg_2018.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<tns:Configuration hierarchy="sg" description="Singapore" xmlns:tns="http://www.example.org/Holiday" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://www.example.org/Holiday /Holiday.xsd"> | ||
<tns:Holidays> | ||
<tns:Fixed month="JANUARY" day="1" descriptionPropertiesKey="NEW_YEAR"/> | ||
<tns:Fixed month="FEBRUARY" day="16" descriptionPropertiesKey="CHINESE_NEW_YEAR"/> | ||
<tns:Fixed month="FEBRUARY" day="17" descriptionPropertiesKey="CHINESE_NEW_YEAR"/> | ||
<tns:Fixed month="MARCH" day="30" descriptionPropertiesKey="christian.GOOD_FRIDAY"/> | ||
<tns:Fixed month="MAY" day="1" descriptionPropertiesKey="LABOUR_DAY"/> | ||
<tns:Fixed month="MAY" day="29" descriptionPropertiesKey="VESAK_DAY"/> | ||
<tns:Fixed month="JUNE" day="15" descriptionPropertiesKey="HARI_RAYA_PUASA"/> | ||
<tns:Fixed month="AUGUST" day="9" descriptionPropertiesKey="NATIONAL_DAY"/> | ||
<tns:Fixed month="AUGUST" day="22" descriptionPropertiesKey="HARI_RAYA_HAJI"/> | ||
<tns:Fixed month="NOVEMBER" day="6" descriptionPropertiesKey="DEEPAVALI"/> | ||
<tns:Fixed month="DECEMBER" day="25" descriptionPropertiesKey="CHRISTMAS"/> | ||
</tns:Holidays> | ||
</tns:Configuration> |
18 changes: 18 additions & 0 deletions
18
jollyday-tests/src/test/resources/holidays/Holidays_test_sg_2019.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<tns:Configuration hierarchy="sg" description="Singapore" xmlns:tns="http://www.example.org/Holiday" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://www.example.org/Holiday /Holiday.xsd"> | ||
<tns:Holidays> | ||
<tns:Fixed month="JANUARY" day="1" descriptionPropertiesKey="NEW_YEAR"/> | ||
<tns:Fixed month="FEBRUARY" day="5" descriptionPropertiesKey="CHINESE_NEW_YEAR"/> | ||
<tns:Fixed month="FEBRUARY" day="6" descriptionPropertiesKey="CHINESE_NEW_YEAR"/> | ||
<tns:Fixed month="APRIL" day="19" descriptionPropertiesKey="christian.GOOD_FRIDAY"/> | ||
<tns:Fixed month="MAY" day="1" descriptionPropertiesKey="LABOUR_DAY"/> | ||
<tns:Fixed month="MAY" day="20" descriptionPropertiesKey="VESAK_DAY"/> | ||
<tns:Fixed month="JUNE" day="5" descriptionPropertiesKey="HARI_RAYA_PUASA"/> | ||
<tns:Fixed month="AUGUST" day="9" descriptionPropertiesKey="NATIONAL_DAY"/> | ||
<tns:Fixed month="AUGUST" day="12" descriptionPropertiesKey="HARI_RAYA_HAJI"/> | ||
<tns:Fixed month="OCTOBER" day="28" descriptionPropertiesKey="DEEPAVALI"/> | ||
<tns:Fixed month="DECEMBER" day="25" descriptionPropertiesKey="CHRISTMAS"/> | ||
</tns:Holidays> | ||
</tns:Configuration> |
19 changes: 19 additions & 0 deletions
19
jollyday-tests/src/test/resources/holidays/Holidays_test_sg_2020.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<tns:Configuration hierarchy="sg" description="Singapore" xmlns:tns="http://www.example.org/Holiday" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://www.example.org/Holiday /Holiday.xsd"> | ||
<tns:Holidays> | ||
<tns:Fixed month="JANUARY" day="1" descriptionPropertiesKey="NEW_YEAR"/> | ||
<tns:Fixed month="JANUARY" day="25" descriptionPropertiesKey="CHINESE_NEW_YEAR"/> | ||
<tns:Fixed month="JANUARY" day="27" descriptionPropertiesKey="CHINESE_NEW_YEAR"/> | ||
<tns:Fixed month="APRIL" day="10" descriptionPropertiesKey="christian.GOOD_FRIDAY"/> | ||
<tns:Fixed month="MAY" day="1" descriptionPropertiesKey="LABOUR_DAY"/> | ||
<tns:Fixed month="MAY" day="7" descriptionPropertiesKey="VESAK_DAY"/> | ||
<tns:Fixed month="MAY" day="25" descriptionPropertiesKey="HARI_RAYA_PUASA"/> | ||
<tns:Fixed month="JULY" day="10" descriptionPropertiesKey="POLLING_DAY"/> | ||
<tns:Fixed month="JULY" day="31" descriptionPropertiesKey="HARI_RAYA_HAJI"/> | ||
<tns:Fixed month="AUGUST" day="10" descriptionPropertiesKey="NATIONAL_DAY"/> | ||
<tns:Fixed month="NOVEMBER" day="14" descriptionPropertiesKey="DEEPAVALI"/> | ||
<tns:Fixed month="DECEMBER" day="25" descriptionPropertiesKey="CHRISTMAS"/> | ||
</tns:Holidays> | ||
</tns:Configuration> |
18 changes: 18 additions & 0 deletions
18
jollyday-tests/src/test/resources/holidays/Holidays_test_sg_2021.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<tns:Configuration hierarchy="sg" description="Singapore" xmlns:tns="http://www.example.org/Holiday" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://www.example.org/Holiday /Holiday.xsd"> | ||
<tns:Holidays> | ||
<tns:Fixed month="JANUARY" day="1" descriptionPropertiesKey="NEW_YEAR"/> | ||
<tns:Fixed month="FEBRUARY" day="12" descriptionPropertiesKey="CHINESE_NEW_YEAR"/> | ||
<tns:Fixed month="FEBRUARY" day="13" descriptionPropertiesKey="CHINESE_NEW_YEAR"/> | ||
<tns:Fixed month="APRIL" day="2" descriptionPropertiesKey="christian.GOOD_FRIDAY"/> | ||
<tns:Fixed month="MAY" day="1" descriptionPropertiesKey="LABOUR_DAY"/> | ||
<tns:Fixed month="MAY" day="13" descriptionPropertiesKey="HARI_RAYA_PUASA"/> | ||
<tns:Fixed month="MAY" day="26" descriptionPropertiesKey="VESAK_DAY"/> | ||
<tns:Fixed month="JULY" day="20" descriptionPropertiesKey="HARI_RAYA_HAJI"/> | ||
<tns:Fixed month="AUGUST" day="9" descriptionPropertiesKey="NATIONAL_DAY"/> | ||
<tns:Fixed month="NOVEMBER" day="4" descriptionPropertiesKey="DEEPAVALI"/> | ||
<tns:Fixed month="DECEMBER" day="25" descriptionPropertiesKey="CHRISTMAS"/> | ||
</tns:Holidays> | ||
</tns:Configuration> |
18 changes: 18 additions & 0 deletions
18
jollyday-tests/src/test/resources/holidays/Holidays_test_sg_2022.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<tns:Configuration hierarchy="sg" description="Singapur" xmlns:tns="http://www.example.org/Holiday" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://www.example.org/Holiday /Holiday.xsd"> | ||
<tns:Holidays> | ||
<tns:Fixed month="JANUARY" day="1" descriptionPropertiesKey="NEW_YEAR"/> | ||
<tns:Fixed month="FEBRUARY" day="1" descriptionPropertiesKey="CHINESE_NEW_YEAR"/> | ||
<tns:Fixed month="FEBRUARY" day="2" descriptionPropertiesKey="CHINESE_NEW_YEAR"/> | ||
<tns:Fixed month="APRIL" day="15" descriptionPropertiesKey="christian.GOOD_FRIDAY"/> | ||
<tns:Fixed month="MAY" day="2" descriptionPropertiesKey="LABOUR_DAY"/> | ||
<tns:Fixed month="MAY" day="3" descriptionPropertiesKey="HARI_RAYA_PUASA"/> | ||
<tns:Fixed month="MAY" day="16" descriptionPropertiesKey="VESAK_DAY"/> | ||
<tns:Fixed month="JULY" day="11" descriptionPropertiesKey="HARI_RAYA_HAJI"/> | ||
<tns:Fixed month="AUGUST" day="9" descriptionPropertiesKey="NATIONAL_DAY"/> | ||
<tns:Fixed month="OCTOBER" day="24" descriptionPropertiesKey="DEEPAVALI"/> | ||
<tns:Fixed month="DECEMBER" day="26" descriptionPropertiesKey="CHRISTMAS"/> | ||
</tns:Holidays> | ||
</tns:Configuration> |
Oops, something went wrong.