diff --git a/spring-test/src/main/java/org/springframework/test/context/support/TestPropertySourceUtils.java b/spring-test/src/main/java/org/springframework/test/context/support/TestPropertySourceUtils.java index 66bd06f529e..9050c22ee19 100644 --- a/spring-test/src/main/java/org/springframework/test/context/support/TestPropertySourceUtils.java +++ b/spring-test/src/main/java/org/springframework/test/context/support/TestPropertySourceUtils.java @@ -245,8 +245,10 @@ public abstract class TestPropertySourceUtils { * descriptors and registering property sources * @since 6.1 * @see TestPropertySource#locations + * @see TestPropertySource#encoding * @see TestPropertySource#factory * @see PropertySourceFactory + * @see #addPropertySourcesToEnvironment(ConfigurableEnvironment, ResourceLoader, List) */ public static void addPropertySourcesToEnvironment(ConfigurableApplicationContext context, List descriptors) { @@ -276,10 +278,11 @@ public abstract class TestPropertySourceUtils { * descriptors and registering property sources * @since 6.1 * @see TestPropertySource#locations + * @see TestPropertySource#encoding * @see TestPropertySource#factory * @see PropertySourceFactory */ - private static void addPropertySourcesToEnvironment(ConfigurableEnvironment environment, + public static void addPropertySourcesToEnvironment(ConfigurableEnvironment environment, ResourceLoader resourceLoader, List descriptors) { Assert.notNull(environment, "'environment' must not be null");