spring-framework/framework-docs
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
..
modules/ROOT Support resource patterns in @TestPropertySource locations 2023-08-16 12:34:20 +02:00
src Add observability support for JMS 2023-08-13 18:24:51 +02:00
antora.yml Fix Title in antora.yml 2023-05-04 15:35:05 +01:00
framework-docs.gradle Add observability support for JMS 2023-08-13 18:24:51 +02:00