mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
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:
parent
8fc59e3367
commit
66ed4fe519
@ -45,7 +45,7 @@ import static org.mockito.Mockito.mock;
|
|||||||
*/
|
*/
|
||||||
class MockBeanContextCachingTests {
|
class MockBeanContextCachingTests {
|
||||||
|
|
||||||
private final DefaultContextCache contextCache = new DefaultContextCache();
|
private final DefaultContextCache contextCache = new DefaultContextCache(2);
|
||||||
|
|
||||||
private final DefaultCacheAwareContextLoaderDelegate delegate = new DefaultCacheAwareContextLoaderDelegate(
|
private final DefaultCacheAwareContextLoaderDelegate delegate = new DefaultCacheAwareContextLoaderDelegate(
|
||||||
this.contextCache);
|
this.contextCache);
|
||||||
|
Loading…
Reference in New Issue
Block a user