接口的使用
cn.taketoday.test.context.SmartContextLoader
使用SmartContextLoader的程序包
程序包
说明
Classes and annotations related to configuring Infra
ApplicationContext for
tests.Ahead-of-time (AOT) support for the Infra TestContext Framework.
Support classes for the TestContext Framework.
Web support classes for the TestContext Framework.
-
cn.taketoday.framework.test.context中SmartContextLoader的使用
修饰符和类型类说明classAContextLoaderthat can be used to test Infra applications (those that normally startup usingApplication). -
cn.taketoday.test.context.aot中SmartContextLoader的使用
修饰符和类型接口说明interfaceStrategy interface for loading anApplicationContextfor build-time AOT processing as well as run-time AOT execution for an integration test managed by the Infra TestContext Framework. -
cn.taketoday.test.context.support中SmartContextLoader的使用
修饰符和类型类说明classAbstract application context loader that provides a basis for all concrete implementations of theContextLoaderSPI.classAbstractDelegatingSmartContextLoaderserves as an abstract base class for implementations of theSmartContextLoaderSPI that delegate to a set of candidate SmartContextLoaders (i.e., one that supports XML configuration files or Groovy scripts and one that supports annotated classes) to determine which context loader is appropriate for a given test class's configuration.classAbstract, generic extension ofAbstractContextLoaderthat loads aGenericApplicationContext.classConcrete implementation ofAbstractGenericContextLoaderthat loads bean definitions from component classes.classDelegatingSmartContextLoaderis a concrete implementation ofAbstractDelegatingSmartContextLoaderthat delegates to aGenericXmlContextLoaderAnnotationConfigContextLoader.classConcrete implementation ofAbstractGenericContextLoaderthat reads bean definitions from JavaPropertiesresources.classConcrete implementation ofAbstractGenericContextLoaderthat reads bean definitions from XML resources.修饰符和类型字段说明private final SmartContextLoaderDelegatingSmartContextLoader.annotationConfigLoaderprivate final SmartContextLoaderDelegatingSmartContextLoader.xmlLoader修饰符和类型方法说明protected abstract SmartContextLoaderAbstractDelegatingSmartContextLoader.getAnnotationConfigLoader()Get the delegateSmartContextLoaderthat supports annotated classes.protected SmartContextLoaderDelegatingSmartContextLoader.getAnnotationConfigLoader()private SmartContextLoaderAbstractDelegatingSmartContextLoader.getContextLoader(MergedContextConfiguration mergedConfig) protected abstract SmartContextLoaderAbstractDelegatingSmartContextLoader.getXmlLoader()Get the delegateSmartContextLoaderthat supports XML configuration files and/or Groovy scripts.protected SmartContextLoaderDelegatingSmartContextLoader.getXmlLoader()修饰符和类型方法说明private static voidAbstractDelegatingSmartContextLoader.delegateProcessing(SmartContextLoader loader, ContextConfigurationAttributes configAttributes) private static StringAbstractDelegatingSmartContextLoader.name(SmartContextLoader loader) private booleanAbstractDelegatingSmartContextLoader.supports(SmartContextLoader loader, MergedContextConfiguration mergedConfig) -
cn.taketoday.test.context.web中SmartContextLoader的使用
修饰符和类型类说明classAbstract, generic extension ofAbstractContextLoaderthat loads aGenericWebApplicationContext.classConcrete implementation ofAbstractGenericWebContextLoaderthat loads bean definitions from annotated classes.classConcrete implementation ofAbstractGenericWebContextLoaderthat loads bean definitions from XML resources.classWebDelegatingSmartContextLoaderis a concrete implementation ofAbstractDelegatingSmartContextLoaderthat delegates to aGenericXmlWebContextLoaderand anAnnotationConfigWebContextLoader.修饰符和类型字段说明private final SmartContextLoaderWebDelegatingSmartContextLoader.annotationConfigLoaderprivate final SmartContextLoaderWebDelegatingSmartContextLoader.xmlLoader修饰符和类型方法说明protected SmartContextLoaderWebDelegatingSmartContextLoader.getAnnotationConfigLoader()protected SmartContextLoaderWebDelegatingSmartContextLoader.getXmlLoader()