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