TestPropertyValues
class TestPropertyValues
Test utilities for adding properties. Properties can be applied to a Spring Environment or to the system environment.
Author
Madhura Bhave
Phillip Webb
Stephane Nicoll
Since
2.0.0
Types
Functions
Link copied to clipboard
Return a new TestPropertyValues instance with additional entries.
Link copied to clipboard
Add the properties from the underlying map to the environment owned by an ApplicationContext.
Add the properties from the underlying map to the environment.
Add the properties from the underlying map to the environment using the specified property source type.
Add the properties from the underlying map to the environment using the specified property source type and name.
Link copied to clipboard
Add the properties to the system properties for the duration of the
action
, restoring previous values when it completes.Add the properties to the system properties for the duration of the
call
, restoring previous values when it completes.Link copied to clipboard
Return an empty TestPropertyValues instance.
Link copied to clipboard
Return a new TestPropertyValues with the underlying map populated with the given property pairs.
Return a new TestPropertyValues with the underlying map populated with the given map entries.
Return a new TestPropertyValues with the underlying map populated with the given stream.