Lazily register DynamicValuesPropertySource
in the TestContext framework
#32871
Labels
Milestone
DynamicValuesPropertySource
in the TestContext framework
#32871
Overview
As a result of commit 6cdb344, the
DynamicValuesPropertySource
is now eagerly registered in theEnvironment
even if theDynamicPropertyRegistry
is never used to register dynamic properties.Ideally, we should only register
DynamicValuesPropertySource
if we know that theDynamicPropertyRegistry
is used -- either by a@DynamicPropertySource
method in a test class or via a bean in theApplicationContext
that invokesadd()
on theDynamicPropertyRegistry
bean.Related Issues
DynamicPropertyRegistry
as a singleton bean in a test'sApplicationContext
#32271The text was updated successfully, but these errors were encountered: