Commit 958aa5db authored by Rui Figueira's avatar Rui Figueira Committed by Stephane Nicoll

Remove outdated reference to `EnvironmentTestUtils`

Documentation still refers to the now deprecated `EnvironmentTestUtils`
class instead of `TestPropertyValues` for setting environment values in
tests.

This commit replaces it with `TestPropertyValues` and provides an
equivalent code example.

Closes gh-12711
parent 72cf471e
......@@ -7160,14 +7160,14 @@ which auto-configures one for you.
[[boot-features-environment-test-utilities]]
==== EnvironmentTestUtils
`EnvironmentTestUtils` lets you quickly add properties to a
==== TestPropertyValues
`TestPropertyValues` lets you quickly add properties to a
`ConfigurableEnvironment` or `ConfigurableApplicationContext`. You can call it with
`key=value` strings, as follows:
[source,java,indent=0]
----
EnvironmentTestUtils.addEnvironment(env, "org=Spring", "name=Boot");
TestPropertyValues.of("org=Spring", "name=Boot").applyTo(env);
----
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment