Skip to content

Support custom properties file formats in @TestPropertySource #30981

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
sbrannen opened this issue Aug 2, 2023 · 1 comment
Closed

Support custom properties file formats in @TestPropertySource #30981

sbrannen opened this issue Aug 2, 2023 · 1 comment
Assignees
Labels
in: test Issues in the test module type: enhancement A general enhancement
Milestone

Comments

@sbrannen
Copy link
Member

sbrannen commented Aug 2, 2023

Overview

In Spring Framework 4.3, we introduced the PropertySourceFactory SPI for use with @PropertySource. This issue aims to introduce the same support in @TestPropertySource.

Related Issues

@sbrannen sbrannen added in: test Issues in the test module type: enhancement A general enhancement labels Aug 2, 2023
@sbrannen sbrannen added this to the 6.1.0-M4 milestone Aug 2, 2023
@sbrannen sbrannen self-assigned this Aug 2, 2023
@sbrannen sbrannen changed the title Support PropertySourceFactory in @TestPropertySource Support custom properties file formats in @TestPropertySource Aug 4, 2023
@snicoll
Copy link
Member

snicoll commented Aug 7, 2023

Reopening as the deprecation of MergedContextConfiguration#getPropertySourceLocations requires to use MergedContextConfiguration#getPropertySourceDescriptors which doesn't have any equivalent in TestPropertySourceUtils.

There is a method that could work but it's private at the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: test Issues in the test module type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants