Skip to content

Support custom properties file formats in @TestPropertySource #30981

Closed
@sbrannen

Description

@sbrannen
Member

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

Activity

added this to the 6.1.0-M4 milestone on Aug 2, 2023
self-assigned this
on Aug 2, 2023
changed the title [-]Support `PropertySourceFactory` in `@TestPropertySource`[/-] [+]Support custom properties file formats in `@TestPropertySource`[/+] on Aug 4, 2023
added a commit that references this issue on Aug 4, 2023
04cce0b
snicoll

snicoll commented on Aug 7, 2023

@snicoll
Member

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.

reopened this on Aug 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @sbrannen@snicoll

      Issue actions

        Support custom properties file formats in `@TestPropertySource` · Issue #30981 · spring-projects/spring-framework