applyTo

Add the properties from the underlying map to the environment owned by an ApplicationContext.

Parameters

context

the context with an environment to modify


open fun applyTo(environment: ConfigurableEnvironment)

Add the properties from the underlying map to the environment. The default property source used is MapPropertySource.

Parameters

environment

the environment that needs to be modified


Add the properties from the underlying map to the environment using the specified property source type.

Parameters

environment

the environment that needs to be modified

type

the type of PropertySource to be added. See Type


open fun applyTo(environment: ConfigurableEnvironment, type: TestPropertyValues.Type, name: String)

Add the properties from the underlying map to the environment using the specified property source type and name.

Parameters

environment

the environment that needs to be modified

type

the type of PropertySource to be added. See Type

name

the name for the property source