类 ImportsContextCustomizerFactory
java.lang.Object
cn.taketoday.framework.test.context.ImportsContextCustomizerFactory
- 所有已实现的接口:
ContextCustomizerFactory
ContextCustomizerFactory to allow @Import annotations to be used
directly on test classes.- 从以下版本开始:
- 4.0
- 作者:
- Phillip Webb, Harry Yang
- 另请参阅:
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private voidassertHasNoBeanMethods(Class<?> testClass) private voidassertHasNoBeanMethods(Method method) createContextCustomizer(Class<?> testClass, List<ContextConfigurationAttributes> configAttributes) Create aContextCustomizerthat should be used to customize aConfigurableApplicationContextbefore it is refreshed.
-
构造器详细资料
-
ImportsContextCustomizerFactory
ImportsContextCustomizerFactory()
-
-
方法详细资料
-
createContextCustomizer
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
-
assertHasNoBeanMethods
-
assertHasNoBeanMethods
-