diff --git a/jollyday-tests/src/test/java/de/focus_shift/jollyday/tests/CalendarHierarchyTest.java b/jollyday-tests/src/test/java/de/focus_shift/jollyday/tests/SubdivisionsTest.java similarity index 89% rename from jollyday-tests/src/test/java/de/focus_shift/jollyday/tests/CalendarHierarchyTest.java rename to jollyday-tests/src/test/java/de/focus_shift/jollyday/tests/SubdivisionsTest.java index 2afb78ad5..c9c79f903 100644 --- a/jollyday-tests/src/test/java/de/focus_shift/jollyday/tests/CalendarHierarchyTest.java +++ b/jollyday-tests/src/test/java/de/focus_shift/jollyday/tests/SubdivisionsTest.java @@ -4,7 +4,6 @@ import com.vitorsvieira.iso.ISOCountry; import com.vitorsvieira.iso.ISOCountrySubdivision; import de.focus_shift.jollyday.core.HolidayCalendar; -import de.focus_shift.jollyday.core.HolidayManager; import org.junit.jupiter.api.Test; import scala.collection.JavaConverters; @@ -17,7 +16,7 @@ import static java.util.stream.Collectors.toList; import static org.assertj.core.api.Assertions.assertThat; -class CalendarHierarchyTest { +class SubdivisionsTest { private static final List noneIso3166Countries = List.of("DJ_STOXX", "LME", "NYSE", "NYSE_EURONEXT", "TARGET", "XK", "FR", "MC"); private static final List okSubdivisions = List.of("FI-01", "ES-RI", "IN-DH", "IN-OD", "IN-UK", "IN-CG", "IN-LA", "IN-TS", "SM-03", "SM-04", "SM-05", "SM-06", "SM-08"); @@ -34,8 +33,8 @@ void ensureThatAllCountryAreISO3166Conform() { .map(CountrySubdivision.EnumVal::toString) .collect(toList()); - final HolidayManager holidayManager = getInstance(create(holidayCalendar)); - holidayManager.getCalendarHierarchy().getChildren().keySet() + getInstance(create(holidayCalendar)) + .getCalendarHierarchy().getChildren().keySet() .forEach(subdivision -> { final String subdivisionWithCountry = holidayCalendar.getId() + "-" + subdivision.toUpperCase(); if (!okSubdivisions.contains(subdivisionWithCountry)) {