Use Gradle test fixture support for spring-context-support

See gh-23550
This commit is contained in:
Sam Brannen
2019-12-29 15:43:15 +01:00
parent 61d4ee594d
commit 0335db23c9
17 changed files with 33 additions and 18 deletions

View File

@@ -37,6 +37,7 @@ import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.contextsupport.testfixture.jcache.JCacheableService;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;

View File

@@ -43,6 +43,8 @@ import org.springframework.context.annotation.AnnotationConfigApplicationContext
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.test.fixtures.cache.SomeKeyGenerator;
import org.springframework.contextsupport.testfixture.jcache.AbstractJCacheAnnotationTests;
import org.springframework.contextsupport.testfixture.jcache.JCacheableService;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatIllegalStateException;

View File

@@ -24,6 +24,7 @@ import org.springframework.cache.jcache.interceptor.JCacheInterceptor;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.support.GenericXmlApplicationContext;
import org.springframework.contextsupport.testfixture.jcache.AbstractJCacheAnnotationTests;
import static org.assertj.core.api.Assertions.assertThat;

View File

@@ -18,6 +18,7 @@ package org.springframework.cache.jcache.config;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.GenericXmlApplicationContext;
import org.springframework.contextsupport.testfixture.jcache.AbstractJCacheAnnotationTests;
/**
* @author Stephane Nicoll

View File

@@ -30,9 +30,9 @@ import javax.cache.annotation.CacheValue;
import org.springframework.cache.Cache;
import org.springframework.cache.interceptor.SimpleKeyGenerator;
import org.springframework.cache.jcache.config.JCacheableService;
import org.springframework.cache.jcache.support.TestableCacheKeyGenerator;
import org.springframework.cache.jcache.support.TestableCacheResolverFactory;
import org.springframework.contextsupport.testfixture.cache.TestableCacheKeyGenerator;
import org.springframework.contextsupport.testfixture.cache.TestableCacheResolverFactory;
import org.springframework.contextsupport.testfixture.jcache.JCacheableService;
/**
* Repository sample with a @CacheDefaults annotation

View File

@@ -32,9 +32,9 @@ import org.springframework.beans.factory.support.DefaultListableBeanFactory;
import org.springframework.cache.interceptor.CacheResolver;
import org.springframework.cache.interceptor.KeyGenerator;
import org.springframework.cache.jcache.AbstractJCacheTests;
import org.springframework.cache.jcache.support.TestableCacheKeyGenerator;
import org.springframework.cache.jcache.support.TestableCacheResolver;
import org.springframework.cache.jcache.support.TestableCacheResolverFactory;
import org.springframework.contextsupport.testfixture.cache.TestableCacheKeyGenerator;
import org.springframework.contextsupport.testfixture.cache.TestableCacheResolver;
import org.springframework.contextsupport.testfixture.cache.TestableCacheResolverFactory;
import org.springframework.util.Assert;
import org.springframework.util.ReflectionUtils;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.cache.jcache.support;
package org.springframework.contextsupport.testfixture.cache;
import java.lang.annotation.Annotation;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.cache.jcache.support;
package org.springframework.contextsupport.testfixture.cache;
import java.lang.annotation.Annotation;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.cache.jcache.support;
package org.springframework.contextsupport.testfixture.cache;
import java.lang.annotation.Annotation;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.cache.jcache.config;
package org.springframework.contextsupport.testfixture.jcache;
import java.io.IOException;
import java.util.concurrent.ConcurrentHashMap;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.cache.jcache.config;
package org.springframework.contextsupport.testfixture.jcache;
import java.io.IOException;