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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
Retrieve the failure threshold for application context loading.static int
Retrieve the maximum size of theContextCache
.
-
Constructor Details
-
ContextCacheUtils
public ContextCacheUtils()
-
-
Method Details
-
retrieveMaxCacheSize
public static int retrieveMaxCacheSize()Retrieve the maximum size of theContextCache
.Uses
SpringProperties
to 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:
-
retrieveContextFailureThreshold
public static int retrieveContextFailureThreshold()Retrieve the failure threshold for application context loading.Uses
SpringProperties
to 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:
-