EnvironmentTestUtils
@Deprecated public abstract class EnvironmentTestUtils extends Object
Constructor and Description |
---|
EnvironmentTestUtils()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static void |
addEnvironment(ConfigurableApplicationContext context,
String... pairs)
Deprecated.
Add additional (high priority) values to an
Environment owned by an
ApplicationContext . |
static void |
addEnvironment(ConfigurableEnvironment environment,
String... pairs)
Deprecated.
Add additional (high priority) values to an
Environment . |
static void |
addEnvironment(String name,
ConfigurableEnvironment environment,
String... pairs)
Deprecated.
Add additional (high priority) values to an
Environment . |
public static void addEnvironment(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(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, 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 © 2016 Pivotal Software, Inc.. All rights reserved.