From 3a8c98767902c0a396d69e8965405938081cb77c Mon Sep 17 00:00:00 2001 From: Tobias Schneider Date: Mon, 13 Jan 2025 22:41:43 +0100 Subject: [PATCH] Improve ensuresManagerParametersOverridesCustomConfigurationProvider test --- .../ConfigurationProviderManagerTest.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/jollyday-core/src/test/java/de/focus_shift/jollyday/core/configuration/ConfigurationProviderManagerTest.java b/jollyday-core/src/test/java/de/focus_shift/jollyday/core/configuration/ConfigurationProviderManagerTest.java index 88dd89774..03c2aca9b 100644 --- a/jollyday-core/src/test/java/de/focus_shift/jollyday/core/configuration/ConfigurationProviderManagerTest.java +++ b/jollyday-core/src/test/java/de/focus_shift/jollyday/core/configuration/ConfigurationProviderManagerTest.java @@ -21,7 +21,7 @@ void setUp() { } @Test - void ensuresUrlConfigurationProviderOverridesClasspathConfigurationProvider() { + void ensuresUrlConfigurationProviderOverridesBaseClasspathConfigurationProvider() { System.setProperty(CONFIG_URLS_PROPERTY, "file:./src/test/resources/URLConfigurationProviderTest.properties"); System.clearProperty(CONFIG_PROVIDERS_PROPERTY); @@ -56,13 +56,13 @@ void ensuresManagerParametersOverridesCustomConfigurationProvider() { System.setProperty(CONFIG_PROVIDERS_PROPERTY, "de.focus_shift.jollyday.core.configuration.ConfigurationProviderManagerTest$CustomConfigurationProvider"); final ManagerParameter managerParameter = ManagerParameters.create((String) null); - managerParameter.setProperty("MANUAL_KEY", "MANUAL_VALUE"); - managerParameter.setProperty("manager.impl", "NewImpl"); + managerParameter.setProperty("manager.impl", "ManagerParameterOverloaded"); + managerParameter.setProperty("manager.impl.manager", "ManagerParameterOverloaded.manager"); sut.mergeConfigurationProperties(managerParameter); - assertThat(managerParameter.getProperty("MANUAL_KEY")).isEqualTo("MANUAL_VALUE"); - assertThat(managerParameter.getProperty("manager.impl")).isEqualTo("NewImpl"); + assertThat(managerParameter.getProperty("manager.impl")).isEqualTo("ManagerParameterOverloaded"); + assertThat(managerParameter.getProperty("manager.impl.manager")).isEqualTo("ManagerParameterOverloaded.manager"); System.clearProperty(CONFIG_URLS_PROPERTY); System.clearProperty(CONFIG_PROVIDERS_PROPERTY);