Skip to content

Commit

Permalink
armenia: add armenia
Browse files Browse the repository at this point in the history
closes #520
  • Loading branch information
derTobsch committed Dec 21, 2024
1 parent 0a73e68 commit aa41470
Show file tree
Hide file tree
Showing 17 changed files with 195 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*/
public enum HolidayCalendar {

ALBANIA("AL"), ANDORRA("AD"), ARGENTINA("AR"), AUSTRALIA("AU"), AUSTRIA("AT"),
ALBANIA("AL"), ANDORRA("AD"), ARGENTINA("AR"), ARMENIA("AM"), AUSTRALIA("AU"), AUSTRIA("AT"),
BAHAMAS("BS"), BELARUS("BY"), BELGIUM("BE"), BERMUDA("BM"), BOLIVIA("BO"), BOSNIA_HERZIGOWINA("BA"), BRAZIL("BR"), BRITISH_VIRGIN_ISLANDS("VG"), BULGARIA("BG"),
CANADA(Locale.CANADA.getCountry()), CAYMAN_ISLANDS("KY"), CHILE("CL"), COLOMBIA("CO"), COSTA_RICA("CR"), CROATIA("HR"), CUBA("CU"), CZECH_REPUBLIC("CZ"), CYPRUS("CY"),
DENMARK("DK"), DOW_JONES_STOXX("DJ_STOXX"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,17 @@ country.description.ag = Antigua And Barbuda
country.description.ai = Anguilla
country.description.al = Albania
country.description.am = Armenia
country.description.am.ag = Aragatsotn
country.description.am.ar = Ararat
country.description.am.av = Armavir
country.description.am.er = Yerevan
country.description.am.gr = Gegharkunik
country.description.am.kt = Kotayk
country.description.am.lo = Lori
country.description.am.sh = Shirak
country.description.am.su = Syunik
country.description.am.tv = Tavush
country.description.am.vd = Vayots Dzor
country.description.an = Netherlands Antilles
country.description.ao = Angola
country.description.aq = Antarctica
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,17 @@ country.description.ag = Antigua und Barbuda
country.description.ai = Anguilla
country.description.al = Albanien
country.description.am = Armenien
country.description.am.ag = Aragatsotn
country.description.am.ar = Ararat
country.description.am.av = Armavir
country.description.am.er = Jerewan
country.description.am.gr = Gegharkunik
country.description.am.kt = Kotajk
country.description.am.lo = Lori
country.description.am.sh = Schirak
country.description.am.su = Sjunik
country.description.am.tv = Tawusch
country.description.am.vd = Wajoz Dsor
country.description.an = Niederländische Antillen
country.description.ao = Angola
country.description.aq = Antarktis
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,17 @@ country.description.ag = Αντίγκουα και Μπαρμπούντα
country.description.ai = Ανγκουίλα
country.description.al = Αλβανία
country.description.am = Αρμενία
country.description.am.ag = Αραγκατσότν
country.description.am.ar = Αραράτ
country.description.am.av = Αρμαβίρ
country.description.am.er = Ερεβάν
country.description.am.gr = Γκεγκαρκουνίκ
country.description.am.kt = Κοτάικ
country.description.am.lo = Λορί
country.description.am.sh = Σιράκ
country.description.am.su = Σιουνίκ
country.description.am.tv = Ταβούς
country.description.am.vd = Βαγιότς Ντζόρ
country.description.an = Ολλανδικές Αντίλλες
country.description.ao = Ανγκόλα
country.description.aq = Ανταρκτική
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,17 @@ country.description.ag = Antigua-et-Barbuda
country.description.ai = Anguilla
country.description.al = Albanie
country.description.am = Arménie
country.description.am.ag = Aragatsotn
country.description.am.ar = Ararat
country.description.am.av = Armavir
country.description.am.er = Erevan
country.description.am.gr = Gegharkunik
country.description.am.kt = Kotayk
country.description.am.lo = Lori
country.description.am.sh = Chirak
country.description.am.su = Syunik
country.description.am.tv = Tavush
country.description.am.vd = Vayots Dzor
country.description.an = Antilles néerlandaises
country.description.ao = Angola
country.description.aq = Antarctique
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,17 @@ country.description.ag = Antigua And Barbuda
country.description.ai = Anguilla
country.description.al = Albania
country.description.am = Armenia
country.description.am.ag = Aragatsotn
country.description.am.ar = Ararat
country.description.am.av = Armavir
country.description.am.er = Jerevan
country.description.am.gr = Gegharkunik
country.description.am.kt = Kotayk
country.description.am.lo = Lori
country.description.am.sh = Sjirok
country.description.am.su = Sjoenik
country.description.am.tv = Tavoesj
country.description.am.vd = Vayots Dzor
country.description.an = Netherlands Antilles
country.description.ao = Angola
country.description.aq = Antarctica
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,17 @@ country.description.ag = Antígua e Barbuda
country.description.ai = Anguilha
country.description.al = Albânia
country.description.am = Arménia
country.description.am.ag = Aragatsotn
country.description.am.ar = Ararat
country.description.am.av = Armavir
country.description.am.er = Erevan
country.description.am.gr = Gegharkunik
country.description.am.kt = Kotayk
country.description.am.lo = Lori
country.description.am.sh = Shirak
country.description.am.su = Syunik
country.description.am.tv = Tavush
country.description.am.vd = Vayots Dzor
country.description.an = Antilhas Neerlandesas
country.description.ao = Angola
country.description.aq = Antárctica
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,17 @@ country.description.ag = Antigua And Barbuda
country.description.ai = Anguilla
country.description.al = Albania
country.description.am = Armenia
country.description.am.ag = Aragatsotn
country.description.am.ar = Ararat
country.description.am.av = Armavir
country.description.am.er = Jerevan
country.description.am.gr = Gegharkunik
country.description.am.kt = Kotayk
country.description.am.lo = Lori
country.description.am.sh = Sjurak
country.description.am.su = Sjunik
country.description.am.tv = Tavusj
country.description.am.vd = Vayots Dzor
country.description.an = Netherlands Antilles
country.description.ao = Angola
country.description.aq = Antarctica
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ holiday.description.ANTI_FASCIST
holiday.description.ANZAC = ANZAC day
holiday.description.APARECIDA = Our Lady of Aparecida
holiday.description.ARBOR = Arbor Day
holiday.description.ARMENIAN_GENOCIDE_REMEMBRANCE_DAY = Armenian Genocide Remembrance Day
holiday.description.ARMISTICE = Armistice Day
holiday.description.ARMY_DAY = Army Day
holiday.description.ARRIVAL_OF_INDENTURED_LABORERS = Arrival of Indentured Labourers
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ holiday.description.ANTI_FASCIST
holiday.description.ANZAC = ANZAC Tag
holiday.description.APARECIDA = Erscheinung der Gottesmutter Maria
holiday.description.ARBOR = Arbor Tag
holiday.description.ARMENIAN_GENOCIDE_REMEMBRANCE_DAY = Gedenktag an den Armenischen Völkermord
holiday.description.ARMISTICE = Waffenstillstand
holiday.description.ARMY_DAY = Tag des Heeres
holiday.description.ARRIVAL_OF_INDENTURED_LABORERS = Ankunft der Gastarbeiter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ holiday.description.ANTI_FASCIST
holiday.description.ANZAC = Ημέρα ANZAC
holiday.description.APARECIDA = Η Παναγία της Απαρεκίδας = Our Lady of Aparecida
holiday.description.ARBOR = Ημέρα του δέντρου
holiday.description.ARMENIAN_GENOCIDE_REMEMBRANCE_DAY = Ημέρα Μνήμης της Αρμενικής Γενοκτονίας
holiday.description.ARMISTICE = Ημέρα Ανακωχής
holiday.description.ARMY_DAY = Ημέρα του Στρατού
holiday.description.ARRIVAL_OF_INDENTURED_LABORERS = Άφιξη μισθωτών εργατών
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ holiday.description.ANTI_FASCIST
holiday.description.ANZAC = Journée d'ANZAC
holiday.description.APARECIDA = Notre Dame d'Aparecida
holiday.description.ARBOR = Fête des Arbres
holiday.description.ARMENIAN_GENOCIDE_REMEMBRANCE_DAY = Journée de Commémoration du Génocide Arménien
holiday.description.ARMISTICE = Armistice
holiday.description.ARMY_DAY = Journée Militaire
holiday.description.ARRIVAL_OF_INDENTURED_LABORERS = Arrivée des travailleurs sous contrat
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ holiday.description.ANTI_FASCIST
holiday.description.ANZAC = ANZAC dag
holiday.description.APARECIDA = Onze lieve vrouw van Aparecida
holiday.description.ARBOR = Arbor Dag
holiday.description.ARMENIAN_GENOCIDE_REMEMBRANCE_DAY = Herdenkingsdag van de Armeense Genocide
holiday.description.ARMISTICE = Wapenstilstand
holiday.description.ARMY_DAY = Dag van het leger
holiday.description.ARRIVAL_OF_INDENTURED_LABORERS = Aankomst van de contractarbeiders
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ holiday.description.ANTI_FASCIST
holiday.description.ANZAC = Dia de ANZAC
holiday.description.APARECIDA = Nossa Senhora da Aparecida
holiday.description.ARBOR = Dia da Árvore
holiday.description.ARMENIAN_GENOCIDE_REMEMBRANCE_DAY = Dia da Memória do Genocídio Armênio
holiday.description.ARMISTICE = Armistice Day
holiday.description.ARMY_DAY = Dia das Forças Armadas
holiday.description.ARRIVAL_OF_INDENTURED_LABORERS = Chegada dos trabalhadores contratados
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ holiday.description.ANTI_FASCIST
holiday.description.ANZAC = ANZAC day
holiday.description.APARECIDA = Our Lady of Aparecida
holiday.description.ARBOR = Arbor Day
holiday.description.ARMENIAN_GENOCIDE_REMEMBRANCE_DAY = Minnesdagen för det Armeniska Folkmordet
holiday.description.ARMISTICE = Armistice Day
holiday.description.ARMY_DAY = Army Day
holiday.description.ARRIVAL_OF_INDENTURED_LABORERS = Ankomst av kontraktsanställda arbetare
Expand Down
73 changes: 73 additions & 0 deletions jollyday-core/src/main/resources/holidays/Holidays_am.xml
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>
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();
}
}

0 comments on commit aa41470

Please sign in to comment.