类 ContextCacheUtils
java.lang.Object
cn.taketoday.test.context.cache.ContextCacheUtils
Collection of utilities for working with
ContextCaches.- 从以下版本开始:
- 4.0
- 作者:
- Sam Brannen, Harry Yang
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static intRetrieve the failure threshold for application context loading.static intRetrieve the maximum size of theContextCache.private static intretrieveProperty(String key, int defaultValue)
-
构造器详细资料
-
ContextCacheUtils
public ContextCacheUtils()
-
-
方法详细资料
-
retrieveMaxCacheSize
public static int retrieveMaxCacheSize()Retrieve the maximum size of theContextCache.Uses
TodayStrategiesto retrieve a system property or Infra property named "infra.test.context.cache.maxSize".Defaults to 32 if no such property has been set or if the property is not an integer.
- 返回:
- the maximum size of the context cache
- 另请参阅:
-
retrieveContextFailureThreshold
public static int retrieveContextFailureThreshold()Retrieve the failure threshold for application context loading.Uses
TodayStrategiesto retrieve a system property or Infra property named "infra.test.context.failure.threshold".Defaults to 1 if no such property has been set or if the property is not an integer.
-
retrieveProperty
-