Skip to content

Commit

Permalink
chore(demo): add public holidays
Browse files Browse the repository at this point in the history
  • Loading branch information
javier-godoy authored and paodb committed Jul 2, 2024
1 parent c5028da commit 1a7806e
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/test/java/com/flowingcode/addons/ycalendar/TestUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* #%L
* Year Month Calendar Add-on
* %%
* Copyright (C) 2021 - 2023 Flowing Code
* Copyright (C) 2021 - 2024 Flowing Code
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -34,6 +34,8 @@ public class TestUtils {
HOLIDAYS.addAll(computeEasterHolidays(2021, 4, 4));
HOLIDAYS.addAll(computeEasterHolidays(2022, 4, 17));
HOLIDAYS.addAll(computeEasterHolidays(2023, 4, 9));
HOLIDAYS.addAll(computeEasterHolidays(2024, 3, 31));
HOLIDAYS.addAll(computeEasterHolidays(2025, 4, 20));

HOLIDAYS.add(LocalDate.of(2021, 5, 24));
HOLIDAYS.add(LocalDate.of(2021, 6, 21));
Expand All @@ -42,6 +44,7 @@ public class TestUtils {
HOLIDAYS.add(LocalDate.of(2022, 8, 15));
HOLIDAYS.add(LocalDate.of(2021, 10, 8));
HOLIDAYS.add(LocalDate.of(2021, 10, 11));

HOLIDAYS.add(LocalDate.of(2022, 10, 7));
HOLIDAYS.add(LocalDate.of(2022, 10, 10));
HOLIDAYS.add(LocalDate.of(2021, 11, 20));
Expand All @@ -50,13 +53,20 @@ public class TestUtils {
HOLIDAYS.add(LocalDate.of(2022, 11, 21));
HOLIDAYS.add(LocalDate.of(2022, 12, 9));
HOLIDAYS.add(LocalDate.of(2022, 12, 25));

HOLIDAYS.add(LocalDate.of(2023, 5, 26));
HOLIDAYS.add(LocalDate.of(2023, 6, 19));
HOLIDAYS.add(LocalDate.of(2023, 8, 21));
HOLIDAYS.add(LocalDate.of(2023, 10, 13));
HOLIDAYS.add(LocalDate.of(2023, 10, 16));
HOLIDAYS.add(LocalDate.of(2023, 11, 20));

HOLIDAYS.add(LocalDate.of(2024, 4, 1));
HOLIDAYS.add(LocalDate.of(2024, 6, 17));
HOLIDAYS.add(LocalDate.of(2024, 6, 21));
HOLIDAYS.add(LocalDate.of(2024, 10, 11));
HOLIDAYS.add(LocalDate.of(2024, 11, 18));

}

private static List<LocalDate> computeEasterHolidays(int y, int m, int d) {
Expand Down

0 comments on commit 1a7806e

Please sign in to comment.