Remove system property dependency from MockBeanContextCachingTests

Now this test can be run regardless of the
'spring.test.context.cache.maxSize' system property value.

See gh-38236
This commit is contained in:
Moritz Halbritter 2023-11-08 09:49:35 +01:00
parent 8fc59e3367
commit 66ed4fe519

View File

@ -45,7 +45,7 @@ import static org.mockito.Mockito.mock;
*/
class MockBeanContextCachingTests {
private final DefaultContextCache contextCache = new DefaultContextCache();
private final DefaultContextCache contextCache = new DefaultContextCache(2);
private final DefaultCacheAwareContextLoaderDelegate delegate = new DefaultCacheAwareContextLoaderDelegate(
this.contextCache);