TestPropertyValues
@Deprecated public abstract class EnvironmentTestUtils extends Object
Constructor and Description |
---|
EnvironmentTestUtils()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static void |
addEnvironment(org.springframework.context.ConfigurableApplicationContext context,
String... pairs)
Deprecated.
Add additional (high priority) values to an
Environment owned by an
ApplicationContext . |
static void |
addEnvironment(org.springframework.core.env.ConfigurableEnvironment environment,
String... pairs)
Deprecated.
Add additional (high priority) values to an
Environment . |
static void |
addEnvironment(String name,
org.springframework.core.env.ConfigurableEnvironment environment,
String... pairs)
Deprecated.
Add additional (high priority) values to an
Environment . |
public static void addEnvironment(org.springframework.context.ConfigurableApplicationContext context, String... pairs)
Environment
owned by an
ApplicationContext
. Name-value pairs can be specified with colon (":") or
equals ("=") separators.context
- the context with an environment to modifypairs
- the name:value pairspublic static void addEnvironment(org.springframework.core.env.ConfigurableEnvironment environment, String... pairs)
Environment
. Name-value pairs
can be specified with colon (":") or equals ("=") separators.environment
- the environment to modifypairs
- the name:value pairspublic static void addEnvironment(String name, org.springframework.core.env.ConfigurableEnvironment environment, String... pairs)
Environment
. Name-value pairs
can be specified with colon (":") or equals ("=") separators.environment
- the environment to modifyname
- the property source namepairs
- the name:value pairsCopyright © 2017 Pivotal Software, Inc.. All rights reserved.