Reuse MapPropertySource
for DynamicValuesPropertySource
implementation (as a template for custom variants)
#32110
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
in: test
Issues in the test module
type: enhancement
A general enhancement
Milestone
Currently Spring Boot has it's own version of
DynamicValuesPropertySource
calledTestcontainersPropertySource
. This class is testcontainers specific and includes some extra functionality, but the basic logic for the core methods is copy/paste from the package-private framework class.Recently @rwinch has started to reuse
TestcontainersPropertySource
in thespring-boot-testjars
experimental project. This isn't ideal since that project should not depend onspring-boot-testcontainers
. We can't moveTestcontainersPropertySource
and there isn't a good home in Spring Boot to create another public variant so we wondered if the Spring Framework class should be made public instead?The alternative is to copy/paste the code again into
spring-boot-testjars
.The text was updated successfully, but these errors were encountered: