Convert ContextCache to interface with default implementation

- ContextCache is now a public interface.

 - Introduced public DefaultContextCache implementation in the 'support'
   subpackage.

Issue: SPR-12683
This commit is contained in:
Sam Brannen
2015-04-19 00:59:54 +02:00
parent c9d597f519
commit e6c24f7167
5 changed files with 335 additions and 226 deletions

View File

@@ -18,11 +18,11 @@ package org.springframework.test.context;
import org.junit.Before;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.Configuration;
import org.springframework.test.annotation.DirtiesContext.HierarchyMode;
import org.springframework.test.context.support.AnnotationConfigContextLoader;
import org.springframework.test.context.support.DefaultContextCache;
import org.springframework.test.util.ReflectionTestUtils;
import static org.junit.Assert.*;
@@ -39,7 +39,7 @@ import static org.springframework.test.context.ContextCacheTestUtils.*;
*/
public class ContextCacheTests {
private ContextCache contextCache = new ContextCache();
private ContextCache contextCache = new DefaultContextCache();
@Before