Class ContextCacheUtils
- java.lang.Object
- org.springframework.test.context.cache.ContextCacheUtils
public abstract class ContextCacheUtils extends Object
Collection of utilities for working withContextCaches.- Since:
- 4.3
- Author:
- Sam Brannen
Constructor Summary
Constructors Constructor Description ContextCacheUtils()
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intretrieveMaxCacheSize()Retrieve the maximum size of theContextCache.
Constructor Detail
ContextCacheUtils
public ContextCacheUtils()
Method Detail
retrieveMaxCacheSize
public static int retrieveMaxCacheSize()
Retrieve the maximum size of theContextCache.Uses
SpringPropertiesto retrieve a system property or Spring property namedspring.test.context.cache.maxSize.Falls back to the value of the
ContextCache.DEFAULT_MAX_CONTEXT_CACHE_SIZEif no such property has been set or if the property is not an integer.- Returns:
- the maximum size of the context cache
- See Also:
ContextCache.MAX_CONTEXT_CACHE_SIZE_PROPERTY_NAME