spring-framework / org.springframework.test.context.cache / DefaultContextCache / <init>

<init>

DefaultContextCache()

Create a new DefaultContextCache using the maximum cache size obtained via ContextCacheUtils#retrieveMaxCacheSize().

Since
4.3

See Also
#DefaultContextCache(int)ContextCacheUtils#retrieveMaxCacheSize()

DefaultContextCache(maxSize: Int)

Create a new DefaultContextCache using the supplied maximum cache size.

Parameters

maxSize - the maximum cache size

Exceptions

IllegalArgumentException - if the supplied maxSize value is not positive

Since
4.3

See Also
#DefaultContextCache()