类 MockServerContainerContextCustomizerFactory
java.lang.Object
cn.taketoday.test.context.web.socket.MockServerContainerContextCustomizerFactory
- 所有已实现的接口:
ContextCustomizerFactory
class MockServerContainerContextCustomizerFactory
extends Object
implements ContextCustomizerFactory
ContextCustomizerFactory which creates a MockServerContainerContextCustomizer
if WebSocket support is present in the classpath and the test class is annotated
with @WebAppConfiguration.- 从以下版本开始:
- 4.0
- 作者:
- Sam Brannen
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明createContextCustomizer(Class<?> testClass, List<ContextConfigurationAttributes> configAttributes) Create aContextCustomizerthat should be used to customize aConfigurableApplicationContextbefore it is refreshed.private static booleanisAnnotatedWithWebAppConfiguration(Class<?> testClass)
-
字段详细资料
-
构造器详细资料
-
MockServerContainerContextCustomizerFactory
MockServerContainerContextCustomizerFactory()
-
-
方法详细资料
-
createContextCustomizer
@Nullable public ContextCustomizer createContextCustomizer(Class<?> testClass, List<ContextConfigurationAttributes> configAttributes) 从接口复制的说明:ContextCustomizerFactoryCreate aContextCustomizerthat should be used to customize aConfigurableApplicationContextbefore it is refreshed.- 指定者:
createContextCustomizer在接口中ContextCustomizerFactory- 参数:
testClass- the test classconfigAttributes- the list of context configuration attributes for the test class, ordered bottom-up (i.e., as if we were traversing up the class hierarchy); nevernullor empty- 返回:
- a
ContextCustomizerornullif no customizer should be used
-
isAnnotatedWithWebAppConfiguration
-