From 405a82ed486eb24fc40faffd4c0fa689cde60677 Mon Sep 17 00:00:00 2001 From: Tobias Schneider Date: Mon, 13 Jan 2025 22:50:53 +0100 Subject: [PATCH] Rename Base to Application classpath test --- ...spathConfigurationProviderContentTest.java | 31 +++++++++++++++++ ...spathConfigurationProviderContentTest.java | 33 ------------------- 2 files changed, 31 insertions(+), 33 deletions(-) create mode 100644 jollyday-core/src/test/java/de/focus_shift/jollyday/core/configuration/ApplicationClasspathConfigurationProviderContentTest.java delete mode 100644 jollyday-core/src/test/java/de/focus_shift/jollyday/core/configuration/BaseClasspathConfigurationProviderContentTest.java diff --git a/jollyday-core/src/test/java/de/focus_shift/jollyday/core/configuration/ApplicationClasspathConfigurationProviderContentTest.java b/jollyday-core/src/test/java/de/focus_shift/jollyday/core/configuration/ApplicationClasspathConfigurationProviderContentTest.java new file mode 100644 index 000000000..3c1f31bb6 --- /dev/null +++ b/jollyday-core/src/test/java/de/focus_shift/jollyday/core/configuration/ApplicationClasspathConfigurationProviderContentTest.java @@ -0,0 +1,31 @@ +package de.focus_shift.jollyday.core.configuration; + +import org.junit.jupiter.api.Test; + +import java.util.Properties; + +import static org.assertj.core.api.Assertions.assertThat; + +class ApplicationClasspathConfigurationProviderContentTest { + + @Test + void ensureToOnlyContainKnownKeys() { + final ApplicationClasspathConfigurationProvider sut = new ApplicationClasspathConfigurationProvider(); + final Properties properties = sut.getProperties(); + assertThat(properties).containsOnlyKeys( + "manager.impl", + "manager.impl.jp", + "parser.impl.de.focus_shift.jollyday.core.spi.Fixed", + "parser.impl.de.focus_shift.jollyday.core.spi.FixedWeekdayInMonth", + "parser.impl.de.focus_shift.jollyday.core.spi.IslamicHoliday", + "parser.impl.de.focus_shift.jollyday.core.spi.ChristianHoliday", + "parser.impl.de.focus_shift.jollyday.core.spi.RelativeToFixed", + "parser.impl.de.focus_shift.jollyday.core.spi.RelativeToWeekdayInMonth", + "parser.impl.de.focus_shift.jollyday.core.spi.FixedWeekdayBetweenFixed", + "parser.impl.de.focus_shift.jollyday.core.spi.FixedWeekdayRelativeToFixed", + "parser.impl.de.focus_shift.jollyday.core.spi.EthiopianOrthodoxHoliday", + "parser.impl.de.focus_shift.jollyday.core.spi.RelativeToEasterSunday", + "configuration.service.impl" + ); + } +} diff --git a/jollyday-core/src/test/java/de/focus_shift/jollyday/core/configuration/BaseClasspathConfigurationProviderContentTest.java b/jollyday-core/src/test/java/de/focus_shift/jollyday/core/configuration/BaseClasspathConfigurationProviderContentTest.java deleted file mode 100644 index 4878d028f..000000000 --- a/jollyday-core/src/test/java/de/focus_shift/jollyday/core/configuration/BaseClasspathConfigurationProviderContentTest.java +++ /dev/null @@ -1,33 +0,0 @@ -package de.focus_shift.jollyday.core.configuration; - -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -import java.util.Properties; - -import static org.assertj.core.api.Assertions.assertThat; - -class BaseClasspathConfigurationProviderContentTest { - - @Test - @Disabled - void ensureToOnlyContainKnownKeys() { - final BaseClasspathConfigurationProvider sut = new BaseClasspathConfigurationProvider(); - final Properties properties = sut.getProperties(); - assertThat(properties).containsOnlyKeys( - "manager.impl", - "manager.impl.jp", - "parser.impl.de.focus_shift.jollyday.core.spi.Fixed", - "parser.impl.de.focus_shift.jollyday.core.spi.FixedWeekdayInMonth", - "parser.impl.de.focus_shift.jollyday.core.spi.IslamicHoliday", - "parser.impl.de.focus_shift.jollyday.core.spi.ChristianHoliday", - "parser.impl.de.focus_shift.jollyday.core.spi.RelativeToFixed", - "parser.impl.de.focus_shift.jollyday.core.spi.RelativeToWeekdayInMonth", - "parser.impl.de.focus_shift.jollyday.core.spi.FixedWeekdayBetweenFixed", - "parser.impl.de.focus_shift.jollyday.core.spi.FixedWeekdayRelativeToFixed", - "parser.impl.de.focus_shift.jollyday.core.spi.EthiopianOrthodoxHoliday", - "parser.impl.de.focus_shift.jollyday.core.spi.RelativeToEasterSunday", - "configuration.service.impl" - ); - } -}