类 InfraTestRandomPortEnvironmentPostProcessor
java.lang.Object
cn.taketoday.framework.test.web.InfraTestRandomPortEnvironmentPostProcessor
- 所有已实现的接口:
cn.taketoday.framework.env.EnvironmentPostProcessor
class InfraTestRandomPortEnvironmentPostProcessor
extends Object
implements cn.taketoday.framework.env.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.- 作者:
- Madhura Bhave, Andy Wilkinson, Harry Yang
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private IntegergetPropertyAsInteger(cn.taketoday.core.env.ConfigurableEnvironment environment, String property, Integer defaultValue) private IntegergetPropertyAsInteger(cn.taketoday.core.env.PropertySource<?> source, String property, cn.taketoday.core.env.ConfigurableEnvironment environment) private IntegergetResolvedValueIfPossible(cn.taketoday.core.env.ConfigurableEnvironment environment, String value) private booleanisTestManagementPortConfigured(cn.taketoday.core.env.PropertySource<?> source) private booleanisTestServerPortFixed(cn.taketoday.core.env.MapPropertySource source, cn.taketoday.core.env.ConfigurableEnvironment environment) voidpostProcessEnvironment(cn.taketoday.core.env.ConfigurableEnvironment environment, cn.taketoday.framework.Application application)
-
字段详细资料
-
构造器详细资料
-
InfraTestRandomPortEnvironmentPostProcessor
InfraTestRandomPortEnvironmentPostProcessor()
-
-
方法详细资料
-
postProcessEnvironment
public void postProcessEnvironment(cn.taketoday.core.env.ConfigurableEnvironment environment, cn.taketoday.framework.Application application) - 指定者:
postProcessEnvironment在接口中cn.taketoday.framework.env.EnvironmentPostProcessor
-
isTestServerPortFixed
private boolean isTestServerPortFixed(cn.taketoday.core.env.MapPropertySource source, cn.taketoday.core.env.ConfigurableEnvironment environment) -
isTestManagementPortConfigured
private boolean isTestManagementPortConfigured(cn.taketoday.core.env.PropertySource<?> source) -
getPropertyAsInteger
-
getPropertyAsInteger
-
getResolvedValueIfPossible
-