public class SpringBootTestRandomPortEnvironmentPostProcessor extends Object implements EnvironmentPostProcessor
EnvironmentPostProcessor
implementation to start the management context on a
random port if the main server's port is 0 and the management context is expected on a
different port.Constructor and Description |
---|
SpringBootTestRandomPortEnvironmentPostProcessor() |
Modifier and Type | Method and Description |
---|---|
void |
postProcessEnvironment(ConfigurableEnvironment environment,
SpringApplication application)
Post-process the given
environment . |
public SpringBootTestRandomPortEnvironmentPostProcessor()
public void postProcessEnvironment(ConfigurableEnvironment environment, SpringApplication application)
EnvironmentPostProcessor
environment
.postProcessEnvironment
in interface EnvironmentPostProcessor
environment
- the environment to post-processapplication
- the application to which the environment belongsCopyright © 2018 Pivotal Software, Inc.. All rights reserved.