-
-
Notifications
You must be signed in to change notification settings - Fork 20
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 <55600187+xspielinbox@users.noreply.github.com>
- Loading branch information
1 parent
bf22698
commit 96a6d52
Showing
16 changed files
with
548 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
242 changes: 242 additions & 0 deletions
242
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/jollyday/tests/country/HolidaySGTest.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.jollyday.tests.country; | ||
|
||
import de.focus_shift.jollyday.core.Holiday; | ||
import de.focus_shift.jollyday.core.HolidayCalendar; | ||
import de.focus_shift.jollyday.core.HolidayManager; | ||
import de.focus_shift.jollyday.core.ManagerParameters; | ||
import de.focus_shift.jollyday.tests.country.base.AbstractCountryTestBase; | ||
import de.focus_shift.jollyday.core.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 HolidaySGTest 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); | ||
} | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
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,19 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Configuration hierarchy="sg" description="Singapore" | ||
xmlns="https://focus_shift.de/jollyday/schema/holiday" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="https://focus_shift.de/jollyday/schema/holiday https://focus_shift.de/jollyday/schema/holiday/holiday.xsd"> | ||
<Holidays> | ||
<Fixed month="JANUARY" day="1" descriptionPropertiesKey="NEW_YEAR"/> | ||
<Fixed month="FEBRUARY" day="12" descriptionPropertiesKey="CHINESE_NEW_YEAR"/> | ||
<Fixed month="FEBRUARY" day="11" descriptionPropertiesKey="CHINESE_NEW_YEAR"/> | ||
<Fixed month="MARCH" day="29" descriptionPropertiesKey="christian.GOOD_FRIDAY"/> | ||
<Fixed month="MAY" day="1" descriptionPropertiesKey="LABOUR_DAY"/> | ||
<Fixed month="MAY" day="24" descriptionPropertiesKey="VESAK_DAY"/> | ||
<Fixed month="AUGUST" day="8" descriptionPropertiesKey="HARI_RAYA_PUASA"/> | ||
<Fixed month="AUGUST" day="9" descriptionPropertiesKey="NATIONAL_DAY"/> | ||
<Fixed month="OCTOBER" day="15" descriptionPropertiesKey="HARI_RAYA_HAJI"/> | ||
<Fixed month="NOVEMBER" day="2" descriptionPropertiesKey="DEEPAVALI"/> | ||
<Fixed month="DECEMBER" day="25" descriptionPropertiesKey="CHRISTMAS"/> | ||
</Holidays> | ||
</Configuration> |
19 changes: 19 additions & 0 deletions
19
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,19 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Configuration hierarchy="sg" description="Singapore" | ||
xmlns="https://focus_shift.de/jollyday/schema/holiday" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="https://focus_shift.de/jollyday/schema/holiday https://focus_shift.de/jollyday/schema/holiday/holiday.xsd"> | ||
<Holidays> | ||
<Fixed month="JANUARY" day="1" descriptionPropertiesKey="NEW_YEAR"/> | ||
<Fixed month="JANUARY" day="31" descriptionPropertiesKey="CHINESE_NEW_YEAR"/> | ||
<Fixed month="FEBRUARY" day="1" descriptionPropertiesKey="CHINESE_NEW_YEAR"/> | ||
<Fixed month="APRIL" day="18" descriptionPropertiesKey="christian.GOOD_FRIDAY"/> | ||
<Fixed month="MAY" day="1" descriptionPropertiesKey="LABOUR_DAY"/> | ||
<Fixed month="MAY" day="13" descriptionPropertiesKey="VESAK_DAY"/> | ||
<Fixed month="JULY" day="28" descriptionPropertiesKey="HARI_RAYA_PUASA"/> | ||
<Fixed month="AUGUST" day="9" descriptionPropertiesKey="NATIONAL_DAY"/> | ||
<Fixed month="OCTOBER" day="6" descriptionPropertiesKey="HARI_RAYA_HAJI"/> | ||
<Fixed month="OCTOBER" day="22" descriptionPropertiesKey="DEEPAVALI"/> | ||
<Fixed month="DECEMBER" day="25" descriptionPropertiesKey="CHRISTMAS"/> | ||
</Holidays> | ||
</Configuration> |
21 changes: 21 additions & 0 deletions
21
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,21 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Configuration hierarchy="sg" description="Singapore" | ||
xmlns="https://focus_shift.de/jollyday/schema/holiday" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="https://focus_shift.de/jollyday/schema/holiday https://focus_shift.de/jollyday/schema/holiday/holiday.xsd"> | ||
<Holidays> | ||
<Fixed month="JANUARY" day="1" descriptionPropertiesKey="NEW_YEAR"/> | ||
<Fixed month="FEBRUARY" day="19" descriptionPropertiesKey="CHINESE_NEW_YEAR"/> | ||
<Fixed month="FEBRUARY" day="20" descriptionPropertiesKey="CHINESE_NEW_YEAR"/> | ||
<Fixed month="APRIL" day="3" descriptionPropertiesKey="christian.GOOD_FRIDAY"/> | ||
<Fixed month="MAY" day="1" descriptionPropertiesKey="LABOUR_DAY"/> | ||
<Fixed month="JUNE" day="1" descriptionPropertiesKey="VESAK_DAY"/> | ||
<Fixed month="JULY" day="17" descriptionPropertiesKey="HARI_RAYA_PUASA"/> | ||
<Fixed month="AUGUST" day="7" descriptionPropertiesKey="SG50_PUBLIC_HOLIDAY"/> | ||
<Fixed month="AUGUST" day="10" descriptionPropertiesKey="NATIONAL_DAY"/> | ||
<Fixed month="SEPTEMBER" day="11" descriptionPropertiesKey="POLLING_DAY"/> | ||
<Fixed month="SEPTEMBER" day="24" descriptionPropertiesKey="HARI_RAYA_HAJI"/> | ||
<Fixed month="NOVEMBER" day="10" descriptionPropertiesKey="DEEPAVALI"/> | ||
<Fixed month="DECEMBER" day="25" descriptionPropertiesKey="CHRISTMAS"/> | ||
</Holidays> | ||
</Configuration> |
19 changes: 19 additions & 0 deletions
19
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,19 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Configuration hierarchy="sg" description="Singapore" | ||
xmlns="https://focus_shift.de/jollyday/schema/holiday" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="https://focus_shift.de/jollyday/schema/holiday https://focus_shift.de/jollyday/schema/holiday/holiday.xsd"> | ||
<Holidays> | ||
<Fixed month="JANUARY" day="1" descriptionPropertiesKey="NEW_YEAR"/> | ||
<Fixed month="FEBRUARY" day="8" descriptionPropertiesKey="CHINESE_NEW_YEAR"/> | ||
<Fixed month="FEBRUARY" day="9" descriptionPropertiesKey="CHINESE_NEW_YEAR"/> | ||
<Fixed month="MARCH" day="25" descriptionPropertiesKey="christian.GOOD_FRIDAY"/> | ||
<Fixed month="MAY" day="2" descriptionPropertiesKey="LABOUR_DAY"/> | ||
<Fixed month="MAY" day="21" descriptionPropertiesKey="VESAK_DAY"/> | ||
<Fixed month="JULY" day="6" descriptionPropertiesKey="HARI_RAYA_PUASA"/> | ||
<Fixed month="AUGUST" day="9" descriptionPropertiesKey="NATIONAL_DAY"/> | ||
<Fixed month="SEPTEMBER" day="12" descriptionPropertiesKey="HARI_RAYA_HAJI"/> | ||
<Fixed month="OCTOBER" day="29" descriptionPropertiesKey="DEEPAVALI"/> | ||
<Fixed month="DECEMBER" day="26" descriptionPropertiesKey="CHRISTMAS"/> | ||
</Holidays> | ||
</Configuration> |
19 changes: 19 additions & 0 deletions
19
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,19 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Configuration hierarchy="sg" description="Singapore" | ||
xmlns="https://focus_shift.de/jollyday/schema/holiday" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="https://focus_shift.de/jollyday/schema/holiday https://focus_shift.de/jollyday/schema/holiday/holiday.xsd"> | ||
<Holidays> | ||
<Fixed month="JANUARY" day="2" descriptionPropertiesKey="NEW_YEAR"/> | ||
<Fixed month="JANUARY" day="28" descriptionPropertiesKey="CHINESE_NEW_YEAR"/> | ||
<Fixed month="JANUARY" day="30" descriptionPropertiesKey="CHINESE_NEW_YEAR"/> | ||
<Fixed month="APRIL" day="14" descriptionPropertiesKey="christian.GOOD_FRIDAY"/> | ||
<Fixed month="MAY" day="1" descriptionPropertiesKey="LABOUR_DAY"/> | ||
<Fixed month="MAY" day="10" descriptionPropertiesKey="VESAK_DAY"/> | ||
<Fixed month="JUNE" day="26" descriptionPropertiesKey="HARI_RAYA_PUASA"/> | ||
<Fixed month="AUGUST" day="9" descriptionPropertiesKey="NATIONAL_DAY"/> | ||
<Fixed month="SEPTEMBER" day="1" descriptionPropertiesKey="HARI_RAYA_HAJI"/> | ||
<Fixed month="OCTOBER" day="18" descriptionPropertiesKey="DEEPAVALI"/> | ||
<Fixed month="DECEMBER" day="25" descriptionPropertiesKey="CHRISTMAS"/> | ||
</Holidays> | ||
</Configuration> |
19 changes: 19 additions & 0 deletions
19
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,19 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Configuration hierarchy="sg" description="Singapore" | ||
xmlns="https://focus_shift.de/jollyday/schema/holiday" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="https://focus_shift.de/jollyday/schema/holiday https://focus_shift.de/jollyday/schema/holiday/holiday.xsd"> | ||
<Holidays> | ||
<Fixed month="JANUARY" day="1" descriptionPropertiesKey="NEW_YEAR"/> | ||
<Fixed month="FEBRUARY" day="16" descriptionPropertiesKey="CHINESE_NEW_YEAR"/> | ||
<Fixed month="FEBRUARY" day="17" descriptionPropertiesKey="CHINESE_NEW_YEAR"/> | ||
<Fixed month="MARCH" day="30" descriptionPropertiesKey="christian.GOOD_FRIDAY"/> | ||
<Fixed month="MAY" day="1" descriptionPropertiesKey="LABOUR_DAY"/> | ||
<Fixed month="MAY" day="29" descriptionPropertiesKey="VESAK_DAY"/> | ||
<Fixed month="JUNE" day="15" descriptionPropertiesKey="HARI_RAYA_PUASA"/> | ||
<Fixed month="AUGUST" day="9" descriptionPropertiesKey="NATIONAL_DAY"/> | ||
<Fixed month="AUGUST" day="22" descriptionPropertiesKey="HARI_RAYA_HAJI"/> | ||
<Fixed month="NOVEMBER" day="6" descriptionPropertiesKey="DEEPAVALI"/> | ||
<Fixed month="DECEMBER" day="25" descriptionPropertiesKey="CHRISTMAS"/> | ||
</Holidays> | ||
</Configuration> |
19 changes: 19 additions & 0 deletions
19
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,19 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Configuration hierarchy="sg" description="Singapore" | ||
xmlns="https://focus_shift.de/jollyday/schema/holiday" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="https://focus_shift.de/jollyday/schema/holiday https://focus_shift.de/jollyday/schema/holiday/holiday.xsd"> | ||
<Holidays> | ||
<Fixed month="JANUARY" day="1" descriptionPropertiesKey="NEW_YEAR"/> | ||
<Fixed month="FEBRUARY" day="5" descriptionPropertiesKey="CHINESE_NEW_YEAR"/> | ||
<Fixed month="FEBRUARY" day="6" descriptionPropertiesKey="CHINESE_NEW_YEAR"/> | ||
<Fixed month="APRIL" day="19" descriptionPropertiesKey="christian.GOOD_FRIDAY"/> | ||
<Fixed month="MAY" day="1" descriptionPropertiesKey="LABOUR_DAY"/> | ||
<Fixed month="MAY" day="20" descriptionPropertiesKey="VESAK_DAY"/> | ||
<Fixed month="JUNE" day="5" descriptionPropertiesKey="HARI_RAYA_PUASA"/> | ||
<Fixed month="AUGUST" day="9" descriptionPropertiesKey="NATIONAL_DAY"/> | ||
<Fixed month="AUGUST" day="12" descriptionPropertiesKey="HARI_RAYA_HAJI"/> | ||
<Fixed month="OCTOBER" day="28" descriptionPropertiesKey="DEEPAVALI"/> | ||
<Fixed month="DECEMBER" day="25" descriptionPropertiesKey="CHRISTMAS"/> | ||
</Holidays> | ||
</Configuration> |
20 changes: 20 additions & 0 deletions
20
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,20 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Configuration hierarchy="sg" description="Singapore" | ||
xmlns="https://focus_shift.de/jollyday/schema/holiday" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="https://focus_shift.de/jollyday/schema/holiday https://focus_shift.de/jollyday/schema/holiday/holiday.xsd"> | ||
<Holidays> | ||
<Fixed month="JANUARY" day="1" descriptionPropertiesKey="NEW_YEAR"/> | ||
<Fixed month="JANUARY" day="25" descriptionPropertiesKey="CHINESE_NEW_YEAR"/> | ||
<Fixed month="JANUARY" day="27" descriptionPropertiesKey="CHINESE_NEW_YEAR"/> | ||
<Fixed month="APRIL" day="10" descriptionPropertiesKey="christian.GOOD_FRIDAY"/> | ||
<Fixed month="MAY" day="1" descriptionPropertiesKey="LABOUR_DAY"/> | ||
<Fixed month="MAY" day="7" descriptionPropertiesKey="VESAK_DAY"/> | ||
<Fixed month="MAY" day="25" descriptionPropertiesKey="HARI_RAYA_PUASA"/> | ||
<Fixed month="JULY" day="10" descriptionPropertiesKey="POLLING_DAY"/> | ||
<Fixed month="JULY" day="31" descriptionPropertiesKey="HARI_RAYA_HAJI"/> | ||
<Fixed month="AUGUST" day="10" descriptionPropertiesKey="NATIONAL_DAY"/> | ||
<Fixed month="NOVEMBER" day="14" descriptionPropertiesKey="DEEPAVALI"/> | ||
<Fixed month="DECEMBER" day="25" descriptionPropertiesKey="CHRISTMAS"/> | ||
</Holidays> | ||
</Configuration> |
19 changes: 19 additions & 0 deletions
19
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,19 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Configuration hierarchy="sg" description="Singapore" | ||
xmlns="https://focus_shift.de/jollyday/schema/holiday" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="https://focus_shift.de/jollyday/schema/holiday https://focus_shift.de/jollyday/schema/holiday/holiday.xsd"> | ||
<Holidays> | ||
<Fixed month="JANUARY" day="1" descriptionPropertiesKey="NEW_YEAR"/> | ||
<Fixed month="FEBRUARY" day="12" descriptionPropertiesKey="CHINESE_NEW_YEAR"/> | ||
<Fixed month="FEBRUARY" day="13" descriptionPropertiesKey="CHINESE_NEW_YEAR"/> | ||
<Fixed month="APRIL" day="2" descriptionPropertiesKey="christian.GOOD_FRIDAY"/> | ||
<Fixed month="MAY" day="1" descriptionPropertiesKey="LABOUR_DAY"/> | ||
<Fixed month="MAY" day="13" descriptionPropertiesKey="HARI_RAYA_PUASA"/> | ||
<Fixed month="MAY" day="26" descriptionPropertiesKey="VESAK_DAY"/> | ||
<Fixed month="JULY" day="20" descriptionPropertiesKey="HARI_RAYA_HAJI"/> | ||
<Fixed month="AUGUST" day="9" descriptionPropertiesKey="NATIONAL_DAY"/> | ||
<Fixed month="NOVEMBER" day="4" descriptionPropertiesKey="DEEPAVALI"/> | ||
<Fixed month="DECEMBER" day="25" descriptionPropertiesKey="CHRISTMAS"/> | ||
</Holidays> | ||
</Configuration> |
19 changes: 19 additions & 0 deletions
19
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,19 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Configuration hierarchy="sg" description="Singapore" | ||
xmlns="https://focus_shift.de/jollyday/schema/holiday" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="https://focus_shift.de/jollyday/schema/holiday https://focus_shift.de/jollyday/schema/holiday/holiday.xsd"> | ||
<Holidays> | ||
<Fixed month="JANUARY" day="1" descriptionPropertiesKey="NEW_YEAR"/> | ||
<Fixed month="FEBRUARY" day="1" descriptionPropertiesKey="CHINESE_NEW_YEAR"/> | ||
<Fixed month="FEBRUARY" day="2" descriptionPropertiesKey="CHINESE_NEW_YEAR"/> | ||
<Fixed month="APRIL" day="15" descriptionPropertiesKey="christian.GOOD_FRIDAY"/> | ||
<Fixed month="MAY" day="2" descriptionPropertiesKey="LABOUR_DAY"/> | ||
<Fixed month="MAY" day="3" descriptionPropertiesKey="HARI_RAYA_PUASA"/> | ||
<Fixed month="MAY" day="16" descriptionPropertiesKey="VESAK_DAY"/> | ||
<Fixed month="JULY" day="11" descriptionPropertiesKey="HARI_RAYA_HAJI"/> | ||
<Fixed month="AUGUST" day="9" descriptionPropertiesKey="NATIONAL_DAY"/> | ||
<Fixed month="OCTOBER" day="24" descriptionPropertiesKey="DEEPAVALI"/> | ||
<Fixed month="DECEMBER" day="26" descriptionPropertiesKey="CHRISTMAS"/> | ||
</Holidays> | ||
</Configuration> |
Oops, something went wrong.