Rename test fixture package in spring-context
See gh-23550
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
/**
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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">
|
||||
|
||||
@@ -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">
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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;
|
||||
@@ -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;
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
@@ -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;
|
||||
@@ -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;
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
@@ -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.
|
||||
@@ -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;
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
@@ -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.
|
||||
@@ -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) {
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user