Class ContextCacheUtils
java.lang.Object
org.springframework.test.context.cache.ContextCacheUtils
Collection of utilities for working with context caching.
- Since:
- 4.3
- Author:
- Sam Brannen
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic intRetrieve the failure threshold for application context loading.static intRetrieve the maximum size of theContextCache.
- 
Constructor Details- 
ContextCacheUtilspublic ContextCacheUtils()
 
- 
- 
Method Details- 
retrieveMaxCacheSizepublic static int retrieveMaxCacheSize()Retrieve the maximum size of theContextCache.Uses SpringPropertiesto retrieve a system property or Spring property named "spring.test.context.cache.maxSize".Defaults to 32 if no such property has been set or if the property is not an integer. - Returns:
- the maximum size of the context cache
- See Also:
 
- 
retrieveContextFailureThresholdpublic static int retrieveContextFailureThreshold()Retrieve the failure threshold for application context loading.Uses SpringPropertiesto retrieve a system property or Spring property named "spring.test.context.failure.threshold".Defaults to 1 if no such property has been set or if the property is not an integer. - Returns:
- the failure threshold
- Since:
- 6.1
- See Also:
 
 
-