类 InfraTestArgs
java.lang.Object
cn.taketoday.framework.test.context.InfraTestArgs
- 所有已实现的接口:
ContextCustomizer
ContextCustomizer to track application arguments that are used in a
InfraTest. The application arguments are taken into account when
evaluating a MergedContextConfiguration to determine if a context can be shared
between tests.- 作者:
- Madhura Bhave, Harry Yang
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidcustomizeContext(cn.taketoday.context.ConfigurableApplicationContext context, MergedContextConfiguration mergedConfig) Customize the suppliedConfigurableApplicationContextafter bean definitions have been loaded into the context but before the context has been refreshed.boolean(专用程序包) static String[]get(Set<ContextCustomizer> customizers) Return the application arguments from the given customizers.(专用程序包) String[]getArgs()inthashCode()
-
字段详细资料
-
NO_ARGS
-
args
-
-
构造器详细资料
-
InfraTestArgs
InfraTestArgs(Class<?> testClass)
-
-
方法详细资料
-
customizeContext
public void customizeContext(cn.taketoday.context.ConfigurableApplicationContext context, MergedContextConfiguration mergedConfig) 从接口复制的说明:ContextCustomizerCustomize the suppliedConfigurableApplicationContextafter bean definitions have been loaded into the context but before the context has been refreshed.- 指定者:
customizeContext在接口中ContextCustomizer- 参数:
context- the context to customizemergedConfig- the merged context configuration
-
getArgs
String[] getArgs() -
equals
-
hashCode
public int hashCode() -
get
Return the application arguments from the given customizers.- 参数:
customizers- the customizers to check- 返回:
- the application args or an empty array
-