Rename test fixture package in spring-context

See gh-23550
This commit is contained in:
Sam Brannen 2019-12-29 17:41:00 +01:00
parent 7cd4ddf5fc
commit 726b1bb1d0
69 changed files with 139 additions and 124 deletions

View File

@ -60,11 +60,26 @@ public class TestSourcesPlugin implements Plugin<Project> {
* <p>This is used to assist with the migration to Gradle test fixtures.
*/
private static final List<String> excludedProjects = Arrays.asList(
// "integration-tests",
"spring-beans",
"spring-context",
"spring-context-indexer",
"spring-context-support",
"spring-core"
// "spring-expression",
// "spring-instrument",
// "spring-jcl",
// "spring-jdbc",
// "spring-jms",
// "spring-messaging",
// "spring-orm",
// "spring-oxm",
// "spring-test",
// "spring-tx",
// "spring-web",
// "spring-webflux",
// "spring-webmvc",
// "spring-websocket"
);

View File

@ -31,7 +31,7 @@ import org.springframework.cache.config.AnnotatedClassCacheableService;
import org.springframework.cache.config.CacheableService;
import org.springframework.cache.config.TestEntity;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.test.fixtures.cache.SomeCustomKeyGenerator;
import org.springframework.context.testfixture.cache.SomeCustomKeyGenerator;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;

View File

@ -36,12 +36,12 @@ import org.springframework.context.annotation.AdviceMode;
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.CacheTestUtils;
import org.springframework.context.test.fixtures.cache.SomeCustomKeyGenerator;
import org.springframework.context.test.fixtures.cache.SomeKeyGenerator;
import org.springframework.context.test.fixtures.cache.beans.AnnotatedClassCacheableService;
import org.springframework.context.test.fixtures.cache.beans.CacheableService;
import org.springframework.context.test.fixtures.cache.beans.DefaultCacheableService;
import org.springframework.context.testfixture.cache.CacheTestUtils;
import org.springframework.context.testfixture.cache.SomeCustomKeyGenerator;
import org.springframework.context.testfixture.cache.SomeKeyGenerator;
import org.springframework.context.testfixture.cache.beans.AnnotatedClassCacheableService;
import org.springframework.context.testfixture.cache.beans.CacheableService;
import org.springframework.context.testfixture.cache.beans.DefaultCacheableService;
import static org.assertj.core.api.Assertions.assertThat;

View File

@ -30,9 +30,9 @@ import org.springframework.context.annotation.AdviceMode;
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.CacheTestUtils;
import org.springframework.context.test.fixtures.cache.SomeCustomKeyGenerator;
import org.springframework.context.test.fixtures.cache.SomeKeyGenerator;
import org.springframework.context.testfixture.cache.CacheTestUtils;
import org.springframework.context.testfixture.cache.SomeCustomKeyGenerator;
import org.springframework.context.testfixture.cache.SomeKeyGenerator;
/**
* @author Stephane Nicoll

View File

@ -22,7 +22,7 @@
<cache:annotation-driven mode="aspectj" key-generator="keyGenerator"/>
<bean id="keyGenerator" class="org.springframework.context.test.fixtures.cache.SomeKeyGenerator"/>
<bean id="keyGenerator" class="org.springframework.context.testfixture.cache.SomeKeyGenerator"/>
<bean id="cacheManager" class="org.springframework.cache.support.SimpleCacheManager">
<property name="caches">
@ -40,7 +40,7 @@
</property>
</bean>
<bean id="customKeyGenerator" class="org.springframework.context.test.fixtures.cache.SomeCustomKeyGenerator"/>
<bean id="customKeyGenerator" class="org.springframework.context.testfixture.cache.SomeCustomKeyGenerator"/>
<bean id="customCacheManager" class="org.springframework.cache.support.SimpleCacheManager">
<property name="caches">

View File

@ -21,7 +21,7 @@ import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.springframework.cache.Cache;
import org.springframework.context.test.fixtures.cache.AbstractValueAdaptingCacheTests;
import org.springframework.context.testfixture.cache.AbstractValueAdaptingCacheTests;
import static org.assertj.core.api.Assertions.assertThat;

View File

@ -25,7 +25,7 @@ import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.springframework.context.test.fixtures.cache.AbstractCacheTests;
import org.springframework.context.testfixture.cache.AbstractCacheTests;
import org.springframework.core.testfixture.EnabledForTestGroups;
import static org.assertj.core.api.Assertions.assertThat;

View File

@ -34,11 +34,11 @@ 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.context.test.fixtures.cache.AbstractCacheAnnotationTests;
import org.springframework.context.test.fixtures.cache.SomeCustomKeyGenerator;
import org.springframework.context.test.fixtures.cache.beans.AnnotatedClassCacheableService;
import org.springframework.context.test.fixtures.cache.beans.CacheableService;
import org.springframework.context.test.fixtures.cache.beans.DefaultCacheableService;
import org.springframework.context.testfixture.cache.AbstractCacheAnnotationTests;
import org.springframework.context.testfixture.cache.SomeCustomKeyGenerator;
import org.springframework.context.testfixture.cache.beans.AnnotatedClassCacheableService;
import org.springframework.context.testfixture.cache.beans.CacheableService;
import org.springframework.context.testfixture.cache.beans.DefaultCacheableService;
import org.springframework.tests.transaction.CallCountingTransactionManager;
import org.springframework.transaction.support.TransactionTemplate;

View File

@ -25,7 +25,7 @@ import javax.cache.spi.CachingProvider;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.springframework.context.test.fixtures.cache.AbstractValueAdaptingCacheTests;
import org.springframework.context.testfixture.cache.AbstractValueAdaptingCacheTests;
/**
* @author Stephane Nicoll

View File

@ -42,7 +42,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.context.test.fixtures.cache.SomeKeyGenerator;
import org.springframework.context.testfixture.cache.SomeKeyGenerator;
import org.springframework.contextsupport.testfixture.jcache.AbstractJCacheAnnotationTests;
import org.springframework.contextsupport.testfixture.jcache.JCacheableService;

View File

@ -50,7 +50,7 @@ import org.springframework.beans.testfixture.beans.Person;
import org.springframework.beans.testfixture.beans.SideEffectBean;
import org.springframework.beans.testfixture.beans.TestBean;
import org.springframework.context.ApplicationListener;
import org.springframework.context.test.fixtures.beans.TestApplicationListener;
import org.springframework.context.testfixture.beans.TestApplicationListener;
import org.springframework.core.io.ClassPathResource;
import org.springframework.core.testfixture.TimeStamped;
import org.springframework.core.testfixture.io.SerializationTestUtils;

View File

@ -28,7 +28,7 @@ import org.springframework.beans.factory.xml.XmlBeanDefinitionReader;
import org.springframework.beans.testfixture.beans.ITestBean;
import org.springframework.beans.testfixture.beans.TestBean;
import org.springframework.context.support.GenericApplicationContext;
import org.springframework.context.test.fixtures.SimpleMapScope;
import org.springframework.context.testfixture.SimpleMapScope;
import org.springframework.core.io.ClassPathResource;
import org.springframework.core.testfixture.io.SerializationTestUtils;

View File

@ -25,7 +25,7 @@ import java.util.concurrent.ConcurrentMap;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.springframework.context.test.fixtures.cache.AbstractValueAdaptingCacheTests;
import org.springframework.context.testfixture.cache.AbstractValueAdaptingCacheTests;
import org.springframework.core.serializer.support.SerializationDelegate;
import static org.assertj.core.api.Assertions.assertThat;

View File

@ -18,7 +18,7 @@ package org.springframework.cache.config;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.support.GenericXmlApplicationContext;
import org.springframework.context.test.fixtures.cache.AbstractCacheAnnotationTests;
import org.springframework.context.testfixture.cache.AbstractCacheAnnotationTests;
/**
* @author Costin Leau

View File

@ -22,7 +22,7 @@ import org.springframework.cache.interceptor.CacheErrorHandler;
import org.springframework.cache.interceptor.CacheInterceptor;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.support.GenericXmlApplicationContext;
import org.springframework.context.test.fixtures.cache.AbstractCacheAnnotationTests;
import org.springframework.context.testfixture.cache.AbstractCacheAnnotationTests;
import static org.assertj.core.api.Assertions.assertThat;

View File

@ -21,7 +21,7 @@ import org.junit.jupiter.api.Test;
import org.springframework.cache.interceptor.CacheInterceptor;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.support.GenericXmlApplicationContext;
import org.springframework.context.test.fixtures.cache.AbstractCacheAnnotationTests;
import org.springframework.context.testfixture.cache.AbstractCacheAnnotationTests;
import static org.assertj.core.api.Assertions.assertThat;

View File

@ -32,9 +32,9 @@ 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.context.test.fixtures.cache.CacheTestUtils;
import org.springframework.context.test.fixtures.cache.beans.CacheableService;
import org.springframework.context.test.fixtures.cache.beans.DefaultCacheableService;
import org.springframework.context.testfixture.cache.CacheTestUtils;
import org.springframework.context.testfixture.cache.beans.CacheableService;
import org.springframework.context.testfixture.cache.beans.DefaultCacheableService;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;

View File

@ -33,13 +33,13 @@ import org.springframework.context.annotation.AnnotationConfigApplicationContext
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.context.test.fixtures.cache.CacheTestUtils;
import org.springframework.context.testfixture.cache.CacheTestUtils;
import org.springframework.core.env.Environment;
import org.springframework.mock.env.MockEnvironment;
import static org.assertj.core.api.Assertions.assertThat;
import static org.springframework.context.test.fixtures.cache.CacheTestUtils.assertCacheHit;
import static org.springframework.context.test.fixtures.cache.CacheTestUtils.assertCacheMiss;
import static org.springframework.context.testfixture.cache.CacheTestUtils.assertCacheHit;
import static org.springframework.context.testfixture.cache.CacheTestUtils.assertCacheMiss;
/**
* Tests that represent real use cases with advanced configuration.

View File

@ -34,13 +34,13 @@ 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.context.test.fixtures.cache.AbstractCacheAnnotationTests;
import org.springframework.context.test.fixtures.cache.CacheTestUtils;
import org.springframework.context.test.fixtures.cache.SomeCustomKeyGenerator;
import org.springframework.context.test.fixtures.cache.SomeKeyGenerator;
import org.springframework.context.test.fixtures.cache.beans.AnnotatedClassCacheableService;
import org.springframework.context.test.fixtures.cache.beans.CacheableService;
import org.springframework.context.test.fixtures.cache.beans.DefaultCacheableService;
import org.springframework.context.testfixture.cache.AbstractCacheAnnotationTests;
import org.springframework.context.testfixture.cache.CacheTestUtils;
import org.springframework.context.testfixture.cache.SomeCustomKeyGenerator;
import org.springframework.context.testfixture.cache.SomeKeyGenerator;
import org.springframework.context.testfixture.cache.beans.AnnotatedClassCacheableService;
import org.springframework.context.testfixture.cache.beans.CacheableService;
import org.springframework.context.testfixture.cache.beans.DefaultCacheableService;
import static org.assertj.core.api.Assertions.assertThat;

View File

@ -35,15 +35,15 @@ import org.springframework.context.ApplicationContext;
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.CacheTestUtils;
import org.springframework.context.testfixture.cache.CacheTestUtils;
import org.springframework.lang.Nullable;
import org.springframework.util.ReflectionUtils;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
import static org.assertj.core.api.Assertions.assertThatIllegalStateException;
import static org.springframework.context.test.fixtures.cache.CacheTestUtils.assertCacheHit;
import static org.springframework.context.test.fixtures.cache.CacheTestUtils.assertCacheMiss;
import static org.springframework.context.testfixture.cache.CacheTestUtils.assertCacheHit;
import static org.springframework.context.testfixture.cache.CacheTestUtils.assertCacheMiss;
/**
* Provides various {@link CacheResolver} customisations scenario

View File

@ -32,7 +32,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.context.test.fixtures.cache.CacheTestUtils;
import org.springframework.context.testfixture.cache.CacheTestUtils;
import static org.assertj.core.api.Assertions.assertThatIllegalStateException;

View File

@ -28,7 +28,7 @@ import org.springframework.context.annotation4.DependencyBean;
import org.springframework.context.annotation4.FactoryMethodComponent;
import org.springframework.context.support.AbstractApplicationContext;
import org.springframework.context.support.GenericApplicationContext;
import org.springframework.context.test.fixtures.SimpleMapScope;
import org.springframework.context.testfixture.SimpleMapScope;
import org.springframework.util.ClassUtils;
import static org.assertj.core.api.Assertions.assertThat;

View File

@ -42,7 +42,7 @@ import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.AnnotatedGenericBeanDefinition;
import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.context.test.fixtures.index.CandidateComponentsTestClassLoader;
import org.springframework.context.testfixture.index.CandidateComponentsTestClassLoader;
import org.springframework.core.env.ConfigurableEnvironment;
import org.springframework.core.env.StandardEnvironment;
import org.springframework.core.io.ClassPathResource;

View File

@ -41,7 +41,7 @@ import org.springframework.beans.testfixture.beans.ITestBean;
import org.springframework.beans.testfixture.beans.NestedTestBean;
import org.springframework.beans.testfixture.beans.TestBean;
import org.springframework.context.support.GenericApplicationContext;
import org.springframework.context.test.fixtures.jndi.ExpectedLookupTemplate;
import org.springframework.context.testfixture.jndi.ExpectedLookupTemplate;
import org.springframework.core.testfixture.io.SerializationTestUtils;
import org.springframework.jndi.support.SimpleJndiBeanFactory;

View File

@ -51,7 +51,7 @@ import org.springframework.context.annotation.ComponentScanParserTests.KustomAnn
import org.springframework.context.annotation.componentscan.simple.ClassWithNestedComponents;
import org.springframework.context.annotation.componentscan.simple.SimpleComponent;
import org.springframework.context.support.GenericApplicationContext;
import org.springframework.context.test.fixtures.SimpleMapScope;
import org.springframework.context.testfixture.SimpleMapScope;
import org.springframework.core.env.ConfigurableEnvironment;
import org.springframework.core.env.Environment;
import org.springframework.core.env.Profiles;

View File

@ -23,7 +23,7 @@ import org.junit.jupiter.api.Test;
import org.springframework.aop.support.AopUtils;
import org.springframework.beans.factory.parsing.BeanDefinitionParsingException;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.context.test.fixtures.SimpleMapScope;
import org.springframework.context.testfixture.SimpleMapScope;
import org.springframework.core.testfixture.io.SerializationTestUtils;
import static org.assertj.core.api.Assertions.assertThat;

View File

@ -41,8 +41,8 @@ import org.springframework.context.support.AbstractApplicationContext;
import org.springframework.context.support.GenericApplicationContext;
import org.springframework.context.support.StaticApplicationContext;
import org.springframework.context.support.StaticMessageSource;
import org.springframework.context.test.fixtures.beans.BeanThatBroadcasts;
import org.springframework.context.test.fixtures.beans.BeanThatListens;
import org.springframework.context.testfixture.beans.BeanThatBroadcasts;
import org.springframework.context.testfixture.beans.BeanThatListens;
import org.springframework.core.Ordered;
import org.springframework.core.ResolvableType;
import org.springframework.core.annotation.Order;

View File

@ -28,7 +28,7 @@ import org.springframework.context.ApplicationEvent;
import org.springframework.context.ApplicationEventPublisher;
import org.springframework.context.event.test.TestEvent;
import org.springframework.context.support.StaticApplicationContext;
import org.springframework.context.test.fixtures.beans.TestApplicationListener;
import org.springframework.context.testfixture.beans.TestApplicationListener;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException;

View File

@ -21,7 +21,7 @@ import java.util.Set;
import org.junit.jupiter.api.Test;
import org.springframework.context.test.fixtures.index.CandidateComponentsTestClassLoader;
import org.springframework.context.testfixture.index.CandidateComponentsTestClassLoader;
import org.springframework.core.io.ClassPathResource;
import static org.assertj.core.api.Assertions.assertThat;

View File

@ -28,9 +28,9 @@ import org.springframework.beans.testfixture.beans.TestBean;
import org.springframework.context.ApplicationEvent;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.event.SimpleApplicationEventMulticaster;
import org.springframework.context.test.fixtures.AbstractApplicationContextTests;
import org.springframework.context.test.fixtures.beans.ACATester;
import org.springframework.context.test.fixtures.beans.BeanThatListens;
import org.springframework.context.testfixture.AbstractApplicationContextTests;
import org.springframework.context.testfixture.beans.ACATester;
import org.springframework.context.testfixture.beans.BeanThatListens;
import org.springframework.core.ResolvableType;
import org.springframework.core.io.ClassPathResource;
import org.springframework.core.io.Resource;

View File

@ -26,9 +26,9 @@ import org.springframework.beans.MutablePropertyValues;
import org.springframework.beans.factory.support.PropertiesBeanDefinitionReader;
import org.springframework.beans.testfixture.beans.TestBean;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.test.fixtures.AbstractApplicationContextTests;
import org.springframework.context.test.fixtures.beans.ACATester;
import org.springframework.context.test.fixtures.beans.BeanThatListens;
import org.springframework.context.testfixture.AbstractApplicationContextTests;
import org.springframework.context.testfixture.beans.ACATester;
import org.springframework.context.testfixture.beans.BeanThatListens;
import org.springframework.core.io.ClassPathResource;
/**

View File

@ -29,9 +29,9 @@ import org.springframework.beans.factory.support.PropertiesBeanDefinitionReader;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.MessageSourceResolvable;
import org.springframework.context.NoSuchMessageException;
import org.springframework.context.test.fixtures.AbstractApplicationContextTests;
import org.springframework.context.test.fixtures.beans.ACATester;
import org.springframework.context.test.fixtures.beans.BeanThatListens;
import org.springframework.context.testfixture.AbstractApplicationContextTests;
import org.springframework.context.testfixture.beans.ACATester;
import org.springframework.context.testfixture.beans.BeanThatListens;
import org.springframework.core.io.ClassPathResource;
import static org.assertj.core.api.Assertions.assertThat;

View File

@ -25,7 +25,7 @@ import org.springframework.beans.factory.support.DefaultListableBeanFactory;
import org.springframework.beans.testfixture.beans.DerivedTestBean;
import org.springframework.beans.testfixture.beans.ITestBean;
import org.springframework.beans.testfixture.beans.TestBean;
import org.springframework.context.test.fixtures.jndi.ExpectedLookupTemplate;
import org.springframework.context.testfixture.jndi.ExpectedLookupTemplate;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;

View File

@ -21,7 +21,7 @@ import javax.naming.NamingException;
import org.junit.jupiter.api.Test;
import org.springframework.context.test.fixtures.jndi.SimpleNamingContext;
import org.springframework.context.testfixture.jndi.SimpleNamingContext;
import static org.assertj.core.api.Assertions.assertThat;

View File

@ -36,13 +36,13 @@
<bean id="debugInterceptor" class="org.springframework.aop.interceptor.DebugInterceptor"/>
<bean id="service" class="org.springframework.context.test.fixtures.cache.beans.DefaultCacheableService"/>
<bean id="service" class="org.springframework.context.testfixture.cache.beans.DefaultCacheableService"/>
<bean id="classService" class="org.springframework.context.test.fixtures.cache.beans.AnnotatedClassCacheableService"/>
<bean id="classService" class="org.springframework.context.testfixture.cache.beans.AnnotatedClassCacheableService"/>
<bean id="keyGenerator" class="org.springframework.context.test.fixtures.cache.SomeKeyGenerator"/>
<bean id="keyGenerator" class="org.springframework.context.testfixture.cache.SomeKeyGenerator"/>
<bean id="customKeyGenerator" class="org.springframework.context.test.fixtures.cache.SomeCustomKeyGenerator"/>
<bean id="customKeyGenerator" class="org.springframework.context.testfixture.cache.SomeCustomKeyGenerator"/>
<bean id="customCacheManager" class="org.springframework.cache.support.SimpleCacheManager">
<property name="caches">

View File

@ -26,15 +26,15 @@
<bean id="debugInterceptor" class="org.springframework.aop.interceptor.DebugInterceptor"/>
<bean id="service" class="org.springframework.context.test.fixtures.cache.beans.DefaultCacheableService"/>
<bean id="service" class="org.springframework.context.testfixture.cache.beans.DefaultCacheableService"/>
<bean id="classService" class="org.springframework.context.test.fixtures.cache.beans.AnnotatedClassCacheableService"/>
<bean id="classService" class="org.springframework.context.testfixture.cache.beans.AnnotatedClassCacheableService"/>
<bean id="keyGenerator" class="org.springframework.context.test.fixtures.cache.SomeKeyGenerator"/>
<bean id="keyGenerator" class="org.springframework.context.testfixture.cache.SomeKeyGenerator"/>
<bean id="errorHandler" class="org.springframework.cache.interceptor.SimpleCacheErrorHandler"/>
<bean id="customKeyGenerator" class="org.springframework.context.test.fixtures.cache.SomeCustomKeyGenerator"/>
<bean id="customKeyGenerator" class="org.springframework.context.testfixture.cache.SomeCustomKeyGenerator"/>
<bean id="customCacheManager" class="org.springframework.cache.support.SimpleCacheManager">
<property name="caches">

View File

@ -112,9 +112,9 @@
</property>
</bean>
<bean id="keyGenerator" class="org.springframework.context.test.fixtures.cache.SomeKeyGenerator"/>
<bean id="keyGenerator" class="org.springframework.context.testfixture.cache.SomeKeyGenerator"/>
<bean id="customKeyGenerator" class="org.springframework.context.test.fixtures.cache.SomeCustomKeyGenerator"/>
<bean id="customKeyGenerator" class="org.springframework.context.testfixture.cache.SomeCustomKeyGenerator"/>
<bean id="customCacheManager" class="org.springframework.cache.support.SimpleCacheManager">
<property name="caches">
@ -126,7 +126,7 @@
<bean id="debugInterceptor" class="org.springframework.aop.interceptor.DebugInterceptor"/>
<bean id="service" class="org.springframework.context.test.fixtures.cache.beans.DefaultCacheableService"/>
<bean id="service" class="org.springframework.context.testfixture.cache.beans.DefaultCacheableService"/>
<bean id="classService" class="org.springframework.context.test.fixtures.cache.beans.AnnotatedClassCacheableService"/>
<bean id="classService" class="org.springframework.context.testfixture.cache.beans.AnnotatedClassCacheableService"/>
</beans>

View File

@ -17,7 +17,7 @@
<property name="scopes">
<map>
<entry key="${scopeName}">
<bean class="org.springframework.context.test.fixtures.SimpleMapScope"/>
<bean class="org.springframework.context.testfixture.SimpleMapScope"/>
</entry>
</map>
</property>

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.context.test.fixtures;
package org.springframework.context.testfixture;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
@ -33,9 +33,9 @@ import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationEvent;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.NoSuchMessageException;
import org.springframework.context.test.fixtures.beans.ACATester;
import org.springframework.context.test.fixtures.beans.BeanThatListens;
import org.springframework.context.test.fixtures.beans.TestApplicationListener;
import org.springframework.context.testfixture.beans.ACATester;
import org.springframework.context.testfixture.beans.BeanThatListens;
import org.springframework.context.testfixture.beans.TestApplicationListener;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.context.test.fixtures;
package org.springframework.context.testfixture;
import java.io.Serializable;
import java.util.HashMap;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.context.test.fixtures.beans;
package org.springframework.context.testfixture.beans;
import java.util.Locale;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.context.test.fixtures.beans;
package org.springframework.context.testfixture.beans;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.context.test.fixtures.beans;
package org.springframework.context.testfixture.beans;
import java.util.Map;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.context.test.fixtures.beans;
package org.springframework.context.testfixture.beans;
import org.springframework.context.ApplicationEvent;
import org.springframework.context.ApplicationListener;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.context.test.fixtures.cache;
package org.springframework.context.testfixture.cache;
import java.util.Collection;
import java.util.UUID;
@ -28,9 +28,9 @@ import org.springframework.beans.factory.NoSuchBeanDefinitionException;
import org.springframework.cache.Cache;
import org.springframework.cache.CacheManager;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.test.fixtures.cache.beans.AnnotatedClassCacheableService;
import org.springframework.context.test.fixtures.cache.beans.CacheableService;
import org.springframework.context.test.fixtures.cache.beans.TestEntity;
import org.springframework.context.testfixture.cache.beans.AnnotatedClassCacheableService;
import org.springframework.context.testfixture.cache.beans.CacheableService;
import org.springframework.context.testfixture.cache.beans.TestEntity;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.context.test.fixtures.cache;
package org.springframework.context.testfixture.cache;
import java.util.List;
import java.util.UUID;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.context.test.fixtures.cache;
package org.springframework.context.testfixture.cache;
import org.junit.jupiter.api.Test;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.context.test.fixtures.cache;
package org.springframework.context.testfixture.cache;
import java.util.ArrayList;
import java.util.List;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.context.test.fixtures.cache;
package org.springframework.context.testfixture.cache;
import java.lang.reflect.Method;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.context.test.fixtures.cache;
package org.springframework.context.testfixture.cache;
import org.springframework.cache.interceptor.SimpleKeyGenerator;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.context.test.fixtures.cache.beans;
package org.springframework.context.testfixture.cache.beans;
import java.io.IOException;
import java.util.concurrent.atomic.AtomicLong;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.context.test.fixtures.cache.beans;
package org.springframework.context.testfixture.cache.beans;
/**
* Basic service interface for caching tests.

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.context.test.fixtures.cache.beans;
package org.springframework.context.testfixture.cache.beans;
import java.io.IOException;
import java.util.concurrent.atomic.AtomicLong;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.context.test.fixtures.cache.beans;
package org.springframework.context.testfixture.cache.beans;
import org.springframework.util.ObjectUtils;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.context.test.fixtures.index;
package org.springframework.context.testfixture.index;
import java.io.IOException;
import java.net.URL;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.context.test.fixtures.jndi;
package org.springframework.context.testfixture.jndi;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
@ -24,7 +24,7 @@ import javax.naming.NamingException;
import org.springframework.jndi.JndiTemplate;
/**
* Copy of the standard {@link org.springframework.context.test.fixtures.jndi.jndi.ExpectedLookupTemplate}
* Copy of the standard {@link org.springframework.context.testfixture.jndi.jndi.ExpectedLookupTemplate}
* for testing purposes.
*
* <p>Simple extension of the JndiTemplate class that always returns a given object.

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.context.test.fixtures.jndi;
package org.springframework.context.testfixture.jndi;
import java.util.HashMap;
import java.util.Hashtable;
@ -156,7 +156,7 @@ public class SimpleNamingContext implements Context {
* Note: Not intended for direct use by applications
* if setting up a JVM-level JNDI environment.
* Use SimpleNamingContextBuilder to set up JNDI bindings then.
* @see org.springframework.context.test.fixtures.jndi.SimpleNamingContextBuilder#bind
* @see org.springframework.context.testfixture.jndi.SimpleNamingContextBuilder#bind
*/
@Override
public void bind(String name, Object obj) {

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.context.test.fixtures.jndi;
package org.springframework.context.testfixture.jndi;
import java.util.Hashtable;

View File

@ -18,7 +18,7 @@ package org.springframework.orm.jpa.persistenceunit;
import org.junit.jupiter.api.Test;
import org.springframework.context.test.fixtures.index.CandidateComponentsTestClassLoader;
import org.springframework.context.testfixture.index.CandidateComponentsTestClassLoader;
import org.springframework.core.io.ClassPathResource;
import org.springframework.core.io.DefaultResourceLoader;
import org.springframework.orm.jpa.domain.Person;

View File

@ -28,7 +28,7 @@ import javax.sql.DataSource;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.springframework.context.test.fixtures.jndi.SimpleNamingContextBuilder;
import org.springframework.context.testfixture.jndi.SimpleNamingContextBuilder;
import org.springframework.core.io.ClassPathResource;
import org.springframework.core.io.Resource;
import org.springframework.core.io.UrlResource;

View File

@ -37,8 +37,8 @@ import org.springframework.beans.factory.FactoryBean;
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
import org.springframework.beans.factory.support.RootBeanDefinition;
import org.springframework.context.support.GenericApplicationContext;
import org.springframework.context.test.fixtures.SimpleMapScope;
import org.springframework.context.test.fixtures.jndi.ExpectedLookupTemplate;
import org.springframework.context.testfixture.SimpleMapScope;
import org.springframework.context.testfixture.jndi.ExpectedLookupTemplate;
import org.springframework.core.testfixture.io.SerializationTestUtils;
import org.springframework.lang.Nullable;
import org.springframework.orm.jpa.AbstractEntityManagerFactoryBeanTests;

View File

@ -23,7 +23,7 @@ import javax.transaction.UserTransaction;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.Test;
import org.springframework.context.test.fixtures.jndi.ExpectedLookupTemplate;
import org.springframework.context.testfixture.jndi.ExpectedLookupTemplate;
import org.springframework.transaction.jta.JtaTransactionManager;
import org.springframework.transaction.jta.UserTransactionAdapter;
import org.springframework.transaction.support.TransactionCallbackWithoutResult;

View File

@ -25,7 +25,7 @@ import com.ibm.wsspi.uow.UOWException;
import com.ibm.wsspi.uow.UOWManager;
import org.junit.jupiter.api.Test;
import org.springframework.context.test.fixtures.jndi.ExpectedLookupTemplate;
import org.springframework.context.testfixture.jndi.ExpectedLookupTemplate;
import org.springframework.dao.OptimisticLockingFailureException;
import org.springframework.transaction.IllegalTransactionStateException;
import org.springframework.transaction.NestedTransactionNotSupportedException;

View File

@ -21,7 +21,7 @@ import javax.transaction.UserTransaction;
import org.junit.jupiter.api.Test;
import org.springframework.context.test.fixtures.jndi.SimpleNamingContextBuilder;
import org.springframework.context.testfixture.jndi.SimpleNamingContextBuilder;
import org.springframework.core.testfixture.io.SerializationTestUtils;
import org.springframework.transaction.jta.JtaTransactionManager;

View File

@ -18,7 +18,7 @@ package org.springframework.web.context.support;
import org.junit.jupiter.api.Test;
import org.springframework.context.test.fixtures.jndi.SimpleNamingContextBuilder;
import org.springframework.context.testfixture.jndi.SimpleNamingContextBuilder;
import org.springframework.core.env.ConfigurableEnvironment;
import org.springframework.core.env.MutablePropertySources;
import org.springframework.core.env.PropertySource;

View File

@ -31,8 +31,8 @@ import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
import org.springframework.beans.testfixture.beans.TestBean;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.NoSuchMessageException;
import org.springframework.context.test.fixtures.AbstractApplicationContextTests;
import org.springframework.context.test.fixtures.beans.TestApplicationListener;
import org.springframework.context.testfixture.AbstractApplicationContextTests;
import org.springframework.context.testfixture.beans.TestApplicationListener;
import org.springframework.mock.web.test.MockServletContext;
import org.springframework.util.Assert;
import org.springframework.web.context.support.XmlWebApplicationContext;
@ -96,7 +96,7 @@ public class XmlWebApplicationContextTests extends AbstractApplicationContextTes
/**
* Overridden as we can't trust superclass method
* @see org.springframework.context.test.fixtures.AbstractApplicationContextTests#testEvents()
* @see org.springframework.context.testfixture.AbstractApplicationContextTests#testEvents()
*/
@Override
protected void doTestEvents(TestApplicationListener listener, TestApplicationListener parentListener,

View File

@ -25,9 +25,9 @@
</bean>
-->
<bean id="beanThatListens" class="org.springframework.context.test.fixtures.beans.BeanThatListens"/>
<bean id="beanThatListens" class="org.springframework.context.testfixture.beans.BeanThatListens"/>
<bean id="parentListener" class="org.springframework.context.test.fixtures.beans.TestApplicationListener"/>
<bean id="parentListener" class="org.springframework.context.testfixture.beans.TestApplicationListener"/>
<!-- Inherited tests -->

View File

@ -3,11 +3,11 @@
<beans>
<bean id="aca" class="org.springframework.context.test.fixtures.beans.ACATester"/>
<bean id="aca" class="org.springframework.context.testfixture.beans.ACATester"/>
<bean id="aca-prototype" class="org.springframework.context.test.fixtures.beans.ACATester" scope="prototype"/>
<bean id="aca-prototype" class="org.springframework.context.testfixture.beans.ACATester" scope="prototype"/>
<bean id="testListener" class="org.springframework.context.test.fixtures.beans.TestApplicationListener"/>
<bean id="testListener" class="org.springframework.context.testfixture.beans.TestApplicationListener"/>
<bean id="roderick" parent="rod">
<property name="name"><value>Roderick</value></property>

View File

@ -11,9 +11,9 @@
<property name="basenamePrefix"><value>org/springframework/web/context/WEB-INF/test-</value></property>
</bean>
<bean id="aca" class="org.springframework.context.test.fixtures.beans.ACATester"/>
<bean id="aca" class="org.springframework.context.testfixture.beans.ACATester"/>
<bean id="aca-prototype" class="org.springframework.context.test.fixtures.beans.ACATester" scope="prototype"/>
<bean id="aca-prototype" class="org.springframework.context.testfixture.beans.ACATester" scope="prototype"/>
<bean id="rod" class="org.springframework.beans.testfixture.beans.TestBean">
<property name="name"><value>Rod</value></property>
@ -21,7 +21,7 @@
<property name="spouse"><ref bean="father"/></property>
</bean>
<bean id="testListener" class="org.springframework.context.test.fixtures.beans.TestApplicationListener"/>
<bean id="testListener" class="org.springframework.context.testfixture.beans.TestApplicationListener"/>
<bean id="roderick" parent="rod">
<property name="name"><value>Roderick</value></property>