类 ContextCacheUtils
- java.lang.Object
- org.springframework.test.context.cache.ContextCacheUtils
public abstract class ContextCacheUtils extends Object
Collection of utilities for working withContextCaches
.- 从以下版本开始:
- 4.3
- 作者:
- Sam Brannen
构造器详细资料
ContextCacheUtils
public ContextCacheUtils()
方法详细资料
retrieveMaxCacheSize
public static int retrieveMaxCacheSize()
Retrieve the maximum size of theContextCache
.Uses
SpringProperties
to retrieve a system property or Spring property namedspring.test.context.cache.maxSize
.Falls back to the value of the
ContextCache.DEFAULT_MAX_CONTEXT_CACHE_SIZE
if no such property has been set or if the property is not an integer.- 返回:
- the maximum size of the context cache
- 另请参阅:
ContextCache.MAX_CONTEXT_CACHE_SIZE_PROPERTY_NAME