spring-framework/framework-docs/modules/ROOT/pages
Sam Brannen 1f544f113a Support resource patterns in @TestPropertySource locations
Inspired by the recently added support for resource patterns in
@PropertySource locations, this commit adds the same support for
resource locations in @TestPropertySource.

For example, assuming the `config` folder in the classpath contains
only 3 files matching the pattern `file?.properties`,

... the following:

@TestPropertySource("classpath:/config/file1.properties")
@TestPropertySource("classpath:/config/file2.properties")
@TestPropertySource("classpath:/config/file3.properties")

... or:

@TestPropertySource({
    "classpath:/config/file1.properties",
    "classpath:/config/file2.properties",
    "classpath:/config/file3.properties"
})

... can now be replaced by:

@TestPropertySource("classpath*:/config/file?.properties")

See gh-21325
Closes gh-31055
2023-08-16 12:34:20 +02:00
..
core Update documentation regarding repeatable @PropertySource support 2023-08-16 11:37:12 +02:00
data-access JdbcClient documentation update 2023-08-15 22:42:25 +02:00
integration Add observability support for JMS 2023-08-13 18:24:51 +02:00
languages Migrate to Asciidoctor Tabs 2023-05-04 15:35:05 +01:00
testing Support resource patterns in @TestPropertySource locations 2023-08-16 12:34:20 +02:00
web Revise docs for server use of `@HttpExchange` 2023-08-04 18:21:42 +03:00
appendix.adoc Fail on error by default during test AOT processing 2023-08-03 10:59:46 +03:00
attributes.adoc Migrate Structure 2023-05-04 15:35:05 +01:00
core.adoc Remove includes 2023-05-04 15:35:05 +01:00
data-access.adoc Enable Section Summary TOC for small pages 2023-05-04 15:35:05 +01:00
index.adoc Update reference documentation index 2023-06-14 08:49:52 +02:00
integration.adoc Enable Section Summary TOC for small pages 2023-05-04 15:35:05 +01:00
languages.adoc Enable Section Summary TOC for small pages 2023-05-04 15:35:05 +01:00
overview.adoc Remove includes 2023-05-04 15:35:05 +01:00
page-layout.adoc Remove unnecessary asciidoc attributes 2023-05-04 15:35:05 +01:00
rsocket.adoc Revise docs for server use of `@HttpExchange` 2023-08-04 18:21:42 +03:00
testing.adoc Enable Section Summary TOC for small pages 2023-05-04 15:35:05 +01:00
web-reactive.adoc Structural Fixes 2023-05-04 15:35:05 +01:00
web.adoc Enable Section Summary TOC for small pages 2023-05-04 15:35:05 +01:00