-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
closes #520
- Loading branch information
Showing
17 changed files
with
195 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
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<Configuration hierarchy="am" description="Armenia" | ||
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="2" descriptionPropertiesKey="NEW_YEAR"/> | ||
<Fixed month="JANUARY" day="5" descriptionPropertiesKey="CHRISTMAS"/> | ||
<Fixed month="JANUARY" day="6" descriptionPropertiesKey="CHRISTMAS"/> | ||
<Fixed month="JANUARY" day="28" descriptionPropertiesKey="ARMY_DAY"/> | ||
<Fixed month="MARCH" day="8" descriptionPropertiesKey=""/> | ||
<Fixed month="APRIL" day="24" descriptionPropertiesKey="ARMENIAN_GENOCIDE_REMEMBRANCE_DAY"/> | ||
<Fixed month="MAY" day="1" descriptionPropertiesKey="LABOUR_DAY"/> | ||
<Fixed month="MAY" day="9" descriptionPropertiesKey=""/> | ||
<Fixed month="MAY" day="28" descriptionPropertiesKey="REPUBLIC_DAY"/> | ||
<Fixed month="JULY" day="5" descriptionPropertiesKey="CONSTITUTION_DAY"/> | ||
<Fixed month="SEPTEMBER" day="21" descriptionPropertiesKey="INDEPENDENCE_DAY"/> | ||
<Fixed month="DECEMBER" day="31" descriptionPropertiesKey="NEW_YEARS_EVE"/> | ||
|
||
<ChristianHoliday type="EASTER" descriptionPropertiesKey="christian.EASTER"/> | ||
</Holidays> | ||
|
||
<Sources> | ||
<Source>https://en.wikipedia.org/wiki/Public_holidays_in_Armenia</Source> | ||
<Source of="ISO 3166-2">https://en.wikipedia.org/wiki/ISO_3166-2:AM</Source> | ||
</Sources> | ||
|
||
<SubConfigurations hierarchy="ag" description="Aragatsotn"> | ||
<Holidays/> | ||
</SubConfigurations> | ||
|
||
<SubConfigurations hierarchy="ar" description="Ararat"> | ||
<Holidays/> | ||
</SubConfigurations> | ||
|
||
<SubConfigurations hierarchy="av" description="Armavir"> | ||
<Holidays/> | ||
</SubConfigurations> | ||
|
||
<SubConfigurations hierarchy="er" description="Yerevan"> | ||
<Holidays/> | ||
</SubConfigurations> | ||
|
||
<SubConfigurations hierarchy="gr" description="Gegharkunik"> | ||
<Holidays/> | ||
</SubConfigurations> | ||
|
||
<SubConfigurations hierarchy="kt" description="Kotayk"> | ||
<Holidays/> | ||
</SubConfigurations> | ||
|
||
<SubConfigurations hierarchy="lo" description="Lori"> | ||
<Holidays/> | ||
</SubConfigurations> | ||
|
||
<SubConfigurations hierarchy="sh" description="Shirak"> | ||
<Holidays/> | ||
</SubConfigurations> | ||
|
||
<SubConfigurations hierarchy="su" description="Syunik"> | ||
<Holidays/> | ||
</SubConfigurations> | ||
|
||
<SubConfigurations hierarchy="tv" description="Tavush"> | ||
<Holidays/> | ||
</SubConfigurations> | ||
|
||
<SubConfigurations hierarchy="vd" description="Vayots Dzor"> | ||
<Holidays/> | ||
</SubConfigurations> | ||
</Configuration> |
37 changes: 37 additions & 0 deletions
37
jollyday-tests/src/test/java/de/focus_shift/jollyday/tests/country/HolidayAMTest.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,37 @@ | ||
package de.focus_shift.jollyday.tests.country; | ||
|
||
import org.junit.jupiter.api.Test; | ||
|
||
import static de.focus_shift.jollyday.core.HolidayCalendar.ARMENIA; | ||
import static de.focus_shift.jollyday.tests.CalendarCheckerApi.assertFor; | ||
import static java.time.Month.APRIL; | ||
import static java.time.Month.DECEMBER; | ||
import static java.time.Month.JANUARY; | ||
import static java.time.Month.JULY; | ||
import static java.time.Month.MARCH; | ||
import static java.time.Month.MAY; | ||
import static java.time.Month.SEPTEMBER; | ||
|
||
class HolidayAMTest { | ||
|
||
@Test | ||
void ensuresHolidays() { | ||
|
||
assertFor(ARMENIA) | ||
.hasFixedHoliday("NEW_YEAR", JANUARY, 1).and() | ||
.hasFixedHoliday("NEW_YEAR", JANUARY, 2).and() | ||
.hasFixedHoliday("CHRISTMAS", JANUARY, 5).and() | ||
.hasFixedHoliday("CHRISTMAS", JANUARY, 6).and() | ||
.hasFixedHoliday("ARMY_DAY", JANUARY, 28).and() | ||
.hasFixedHoliday("", MARCH, 8).and() | ||
.hasFixedHoliday("ARMENIAN_GENOCIDE_REMEMBRANCE_DAY", APRIL, 24).and() | ||
.hasFixedHoliday("LABOUR_DAY", MAY, 1).and() | ||
.hasFixedHoliday("", MAY, 9).and() | ||
.hasFixedHoliday("REPUBLIC_DAY", MAY, 28).and() | ||
.hasFixedHoliday("CONSTITUTION_DAY", JULY, 5).and() | ||
.hasFixedHoliday("INDEPENDENCE_DAY", SEPTEMBER, 21).and() | ||
.hasFixedHoliday("NEW_YEARS_EVE", DECEMBER, 31).and() | ||
.hasChristianHoliday("EASTER") | ||
.check(); | ||
} | ||
} |