Skip to content

Commit 3a38bb4

Browse files
committed
Polishing
1 parent 02d3269 commit 3a38bb4

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

framework-docs/modules/ROOT/pages/testing/testcontext-framework/ctx-management/caching.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ framework uses the following configuration parameters to build the context cache
2020
* `contextLoader` (from `@ContextConfiguration`)
2121
* `parent` (from `@ContextHierarchy`)
2222
* `activeProfiles` (from `@ActiveProfiles`)
23-
* `propertySourceLocations` (from `@TestPropertySource`)
23+
* `propertySourceDescriptors` (from `@TestPropertySource`)
2424
* `propertySourceProperties` (from `@TestPropertySource`)
2525
* `resourceBasePath` (from `@WebAppConfiguration`)
2626

spring-test/src/main/java/org/springframework/test/context/support/TestPropertySourceUtils.java

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ private static String[] mergeProperties(List<TestPropertySourceAttributes> attri
177177
/**
178178
* Add the {@link Properties} files from the given resource {@code locations}
179179
* to the {@link Environment} of the supplied {@code context}.
180-
* <p>This method simply delegates to
180+
* <p>This method delegates to
181181
* {@link #addPropertiesFilesToEnvironment(ConfigurableEnvironment, ResourceLoader, String...)}.
182182
* @param context the application context whose environment should be updated;
183183
* never {@code null}
@@ -229,14 +229,8 @@ public static void addPropertiesFilesToEnvironment(ConfigurableEnvironment envir
229229
/**
230230
* Add property sources for the given {@code descriptors} to the
231231
* {@link Environment} of the supplied {@code context}.
232-
* <p>Property placeholders in resource locations (i.e., <code>${...}</code>)
233-
* will be {@linkplain Environment#resolveRequiredPlaceholders(String) resolved}
234-
* against the {@code Environment}.
235-
* <p>Each {@link PropertySource} will be created via the configured
236-
* {@link PropertySourceDescriptor#propertySourceFactory() PropertySourceFactory}
237-
* (or the {@link DefaultPropertySourceFactory} if no factory is configured)
238-
* and added to the {@link PropertySources} of the environment with the highest
239-
* precedence.
232+
* <p>This method delegates to
233+
* {@link #addPropertySourcesToEnvironment(ConfigurableEnvironment, ResourceLoader, List)}.
240234
* @param context the application context whose environment should be updated;
241235
* never {@code null}
242236
* @param descriptors the property source descriptors to process; potentially

0 commit comments

Comments
 (0)