Browse Source

Rename test fixture package in spring-context

See gh-23550
pull/24287/head
Sam Brannen 6 years ago
parent
commit
726b1bb1d0
  1. 15
      buildSrc/src/main/java/org/springframework/build/testsources/TestSourcesPlugin.java
  2. 2
      spring-aspects/src/test/java/org/springframework/cache/aspectj/AbstractCacheAnnotationTests.java
  3. 12
      spring-aspects/src/test/java/org/springframework/cache/aspectj/AspectJEnableCachingIsolatedTests.java
  4. 6
      spring-aspects/src/test/java/org/springframework/cache/aspectj/AspectJEnableCachingTests.java
  5. 4
      spring-aspects/src/test/resources/org/springframework/cache/config/annotation-cache-aspectj.xml
  6. 2
      spring-context-support/src/test/java/org/springframework/cache/caffeine/CaffeineCacheTests.java
  7. 2
      spring-context-support/src/test/java/org/springframework/cache/ehcache/EhCacheCacheTests.java
  8. 10
      spring-context-support/src/test/java/org/springframework/cache/jcache/JCacheEhCacheAnnotationTests.java
  9. 2
      spring-context-support/src/test/java/org/springframework/cache/jcache/JCacheEhCacheApiTests.java
  10. 2
      spring-context-support/src/test/java/org/springframework/cache/jcache/config/JCacheJavaConfigTests.java
  11. 2
      spring-context/src/test/java/org/springframework/aop/framework/ProxyFactoryBeanTests.java
  12. 2
      spring-context/src/test/java/org/springframework/aop/scope/ScopedProxyTests.java
  13. 2
      spring-context/src/test/java/org/springframework/cache/concurrent/ConcurrentMapCacheTests.java
  14. 2
      spring-context/src/test/java/org/springframework/cache/config/AnnotationDrivenCacheConfigTests.java
  15. 2
      spring-context/src/test/java/org/springframework/cache/config/AnnotationNamespaceDrivenTests.java
  16. 2
      spring-context/src/test/java/org/springframework/cache/config/CacheAdviceNamespaceTests.java
  17. 6
      spring-context/src/test/java/org/springframework/cache/config/CustomInterceptorTests.java
  18. 6
      spring-context/src/test/java/org/springframework/cache/config/EnableCachingIntegrationTests.java
  19. 14
      spring-context/src/test/java/org/springframework/cache/config/EnableCachingTests.java
  20. 6
      spring-context/src/test/java/org/springframework/cache/interceptor/CacheResolverCustomizationTests.java
  21. 2
      spring-context/src/test/java/org/springframework/cache/interceptor/CacheSyncFailureTests.java
  22. 2
      spring-context/src/test/java/org/springframework/context/annotation/ClassPathFactoryBeanDefinitionScannerTests.java
  23. 2
      spring-context/src/test/java/org/springframework/context/annotation/ClassPathScanningCandidateComponentProviderTests.java
  24. 2
      spring-context/src/test/java/org/springframework/context/annotation/CommonAnnotationBeanPostProcessorTests.java
  25. 2
      spring-context/src/test/java/org/springframework/context/annotation/ComponentScanAnnotationIntegrationTests.java
  26. 2
      spring-context/src/test/java/org/springframework/context/annotation/ComponentScanParserScopedProxyTests.java
  27. 4
      spring-context/src/test/java/org/springframework/context/event/ApplicationContextEventTests.java
  28. 2
      spring-context/src/test/java/org/springframework/context/event/EventPublicationInterceptorTests.java
  29. 2
      spring-context/src/test/java/org/springframework/context/index/CandidateComponentsIndexLoaderTests.java
  30. 6
      spring-context/src/test/java/org/springframework/context/support/StaticApplicationContextMulticasterTests.java
  31. 6
      spring-context/src/test/java/org/springframework/context/support/StaticApplicationContextTests.java
  32. 6
      spring-context/src/test/java/org/springframework/context/support/StaticMessageSourceTests.java
  33. 2
      spring-context/src/test/java/org/springframework/jndi/JndiObjectFactoryBeanTests.java
  34. 2
      spring-context/src/test/java/org/springframework/jndi/JndiPropertySourceTests.java
  35. 8
      spring-context/src/test/resources/org/springframework/cache/config/annotationDrivenCacheConfig.xml
  36. 8
      spring-context/src/test/resources/org/springframework/cache/config/annotationDrivenCacheNamespace.xml
  37. 8
      spring-context/src/test/resources/org/springframework/cache/config/cache-advice.xml
  38. 2
      spring-context/src/test/resources/org/springframework/jmx/export/propertyPlaceholderConfigurer.xml
  39. 8
      spring-context/src/testFixtures/java/org/springframework/context/testfixture/AbstractApplicationContextTests.java
  40. 2
      spring-context/src/testFixtures/java/org/springframework/context/testfixture/SimpleMapScope.java
  41. 2
      spring-context/src/testFixtures/java/org/springframework/context/testfixture/beans/ACATester.java
  42. 2
      spring-context/src/testFixtures/java/org/springframework/context/testfixture/beans/BeanThatBroadcasts.java
  43. 2
      spring-context/src/testFixtures/java/org/springframework/context/testfixture/beans/BeanThatListens.java
  44. 2
      spring-context/src/testFixtures/java/org/springframework/context/testfixture/beans/TestApplicationListener.java
  45. 8
      spring-context/src/testFixtures/java/org/springframework/context/testfixture/cache/AbstractCacheAnnotationTests.java
  46. 2
      spring-context/src/testFixtures/java/org/springframework/context/testfixture/cache/AbstractCacheTests.java
  47. 2
      spring-context/src/testFixtures/java/org/springframework/context/testfixture/cache/AbstractValueAdaptingCacheTests.java
  48. 2
      spring-context/src/testFixtures/java/org/springframework/context/testfixture/cache/CacheTestUtils.java
  49. 2
      spring-context/src/testFixtures/java/org/springframework/context/testfixture/cache/SomeCustomKeyGenerator.java
  50. 2
      spring-context/src/testFixtures/java/org/springframework/context/testfixture/cache/SomeKeyGenerator.java
  51. 2
      spring-context/src/testFixtures/java/org/springframework/context/testfixture/cache/beans/AnnotatedClassCacheableService.java
  52. 2
      spring-context/src/testFixtures/java/org/springframework/context/testfixture/cache/beans/CacheableService.java
  53. 2
      spring-context/src/testFixtures/java/org/springframework/context/testfixture/cache/beans/DefaultCacheableService.java
  54. 2
      spring-context/src/testFixtures/java/org/springframework/context/testfixture/cache/beans/TestEntity.java
  55. 2
      spring-context/src/testFixtures/java/org/springframework/context/testfixture/index/CandidateComponentsTestClassLoader.java
  56. 4
      spring-context/src/testFixtures/java/org/springframework/context/testfixture/jndi/ExpectedLookupTemplate.java
  57. 4
      spring-context/src/testFixtures/java/org/springframework/context/testfixture/jndi/SimpleNamingContext.java
  58. 2
      spring-context/src/testFixtures/java/org/springframework/context/testfixture/jndi/SimpleNamingContextBuilder.java
  59. 2
      spring-orm/src/test/java/org/springframework/orm/jpa/persistenceunit/DefaultPersistenceUnitManagerTests.java
  60. 2
      spring-orm/src/test/java/org/springframework/orm/jpa/persistenceunit/PersistenceXmlParsingTests.java
  61. 4
      spring-orm/src/test/java/org/springframework/orm/jpa/support/PersistenceInjectionTests.java
  62. 2
      spring-tx/src/test/java/org/springframework/transaction/JndiJtaTransactionManagerTests.java
  63. 2
      spring-tx/src/test/java/org/springframework/transaction/jta/WebSphereUowTransactionManagerTests.java
  64. 2
      spring-tx/src/test/java/org/springframework/transaction/support/JtaTransactionManagerSerializationTests.java
  65. 2
      spring-web/src/test/java/org/springframework/web/context/support/StandardServletEnvironmentTests.java
  66. 6
      spring-webmvc/src/test/java/org/springframework/web/context/XmlWebApplicationContextTests.java
  67. 4
      spring-webmvc/src/test/resources/org/springframework/web/context/WEB-INF/applicationContext.xml
  68. 6
      spring-webmvc/src/test/resources/org/springframework/web/context/WEB-INF/context-addition.xml
  69. 6
      spring-webmvc/src/test/resources/org/springframework/web/context/WEB-INF/test-servlet.xml

15
buildSrc/src/main/java/org/springframework/build/testsources/TestSourcesPlugin.java

@ -60,11 +60,26 @@ public class TestSourcesPlugin implements Plugin<Project> { @@ -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"
);

2
spring-aspects/src/test/java/org/springframework/cache/aspectj/AbstractCacheAnnotationTests.java vendored

@ -31,7 +31,7 @@ import org.springframework.cache.config.AnnotatedClassCacheableService; @@ -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;

12
spring-aspects/src/test/java/org/springframework/cache/aspectj/AspectJEnableCachingIsolatedTests.java vendored

@ -36,12 +36,12 @@ import org.springframework.context.annotation.AdviceMode; @@ -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;

6
spring-aspects/src/test/java/org/springframework/cache/aspectj/AspectJEnableCachingTests.java vendored

@ -30,9 +30,9 @@ import org.springframework.context.annotation.AdviceMode; @@ -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

4
spring-aspects/src/test/resources/org/springframework/cache/config/annotation-cache-aspectj.xml vendored

@ -22,7 +22,7 @@ @@ -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 @@ @@ -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">

2
spring-context-support/src/test/java/org/springframework/cache/caffeine/CaffeineCacheTests.java vendored

@ -21,7 +21,7 @@ import org.junit.jupiter.api.BeforeEach; @@ -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;

2
spring-context-support/src/test/java/org/springframework/cache/ehcache/EhCacheCacheTests.java vendored

@ -25,7 +25,7 @@ import org.junit.jupiter.api.AfterEach; @@ -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;

10
spring-context-support/src/test/java/org/springframework/cache/jcache/JCacheEhCacheAnnotationTests.java vendored

@ -34,11 +34,11 @@ import org.springframework.context.ConfigurableApplicationContext; @@ -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;

2
spring-context-support/src/test/java/org/springframework/cache/jcache/JCacheEhCacheApiTests.java vendored

@ -25,7 +25,7 @@ import javax.cache.spi.CachingProvider; @@ -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

2
spring-context-support/src/test/java/org/springframework/cache/jcache/config/JCacheJavaConfigTests.java vendored

@ -42,7 +42,7 @@ import org.springframework.context.ConfigurableApplicationContext; @@ -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;

2
spring-context/src/test/java/org/springframework/aop/framework/ProxyFactoryBeanTests.java

@ -50,7 +50,7 @@ import org.springframework.beans.testfixture.beans.Person; @@ -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;

2
spring-context/src/test/java/org/springframework/aop/scope/ScopedProxyTests.java

@ -28,7 +28,7 @@ import org.springframework.beans.factory.xml.XmlBeanDefinitionReader; @@ -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;

2
spring-context/src/test/java/org/springframework/cache/concurrent/ConcurrentMapCacheTests.java vendored

@ -25,7 +25,7 @@ import java.util.concurrent.ConcurrentMap; @@ -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;

2
spring-context/src/test/java/org/springframework/cache/config/AnnotationDrivenCacheConfigTests.java vendored

@ -18,7 +18,7 @@ package org.springframework.cache.config; @@ -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

2
spring-context/src/test/java/org/springframework/cache/config/AnnotationNamespaceDrivenTests.java vendored

@ -22,7 +22,7 @@ import org.springframework.cache.interceptor.CacheErrorHandler; @@ -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;

2
spring-context/src/test/java/org/springframework/cache/config/CacheAdviceNamespaceTests.java vendored

@ -21,7 +21,7 @@ import org.junit.jupiter.api.Test; @@ -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;

6
spring-context/src/test/java/org/springframework/cache/config/CustomInterceptorTests.java vendored

@ -32,9 +32,9 @@ import org.springframework.context.ConfigurableApplicationContext; @@ -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;

6
spring-context/src/test/java/org/springframework/cache/config/EnableCachingIntegrationTests.java vendored

@ -33,13 +33,13 @@ import org.springframework.context.annotation.AnnotationConfigApplicationContext @@ -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.

14
spring-context/src/test/java/org/springframework/cache/config/EnableCachingTests.java vendored

@ -34,13 +34,13 @@ import org.springframework.context.ConfigurableApplicationContext; @@ -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;

6
spring-context/src/test/java/org/springframework/cache/interceptor/CacheResolverCustomizationTests.java vendored

@ -35,15 +35,15 @@ import org.springframework.context.ApplicationContext; @@ -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

2
spring-context/src/test/java/org/springframework/cache/interceptor/CacheSyncFailureTests.java vendored

@ -32,7 +32,7 @@ import org.springframework.context.ConfigurableApplicationContext; @@ -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;

2
spring-context/src/test/java/org/springframework/context/annotation/ClassPathFactoryBeanDefinitionScannerTests.java

@ -28,7 +28,7 @@ import org.springframework.context.annotation4.DependencyBean; @@ -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;

2
spring-context/src/test/java/org/springframework/context/annotation/ClassPathScanningCandidateComponentProviderTests.java

@ -42,7 +42,7 @@ import org.junit.jupiter.api.Test; @@ -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;

2
spring-context/src/test/java/org/springframework/context/annotation/CommonAnnotationBeanPostProcessorTests.java

@ -41,7 +41,7 @@ import org.springframework.beans.testfixture.beans.ITestBean; @@ -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;

2
spring-context/src/test/java/org/springframework/context/annotation/ComponentScanAnnotationIntegrationTests.java

@ -51,7 +51,7 @@ import org.springframework.context.annotation.ComponentScanParserTests.KustomAnn @@ -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;

2
spring-context/src/test/java/org/springframework/context/annotation/ComponentScanParserScopedProxyTests.java

@ -23,7 +23,7 @@ import org.junit.jupiter.api.Test; @@ -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;

4
spring-context/src/test/java/org/springframework/context/event/ApplicationContextEventTests.java

@ -41,8 +41,8 @@ import org.springframework.context.support.AbstractApplicationContext; @@ -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;

2
spring-context/src/test/java/org/springframework/context/event/EventPublicationInterceptorTests.java

@ -28,7 +28,7 @@ import org.springframework.context.ApplicationEvent; @@ -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;

2
spring-context/src/test/java/org/springframework/context/index/CandidateComponentsIndexLoaderTests.java

@ -21,7 +21,7 @@ import java.util.Set; @@ -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;

6
spring-context/src/test/java/org/springframework/context/support/StaticApplicationContextMulticasterTests.java

@ -28,9 +28,9 @@ import org.springframework.beans.testfixture.beans.TestBean; @@ -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;

6
spring-context/src/test/java/org/springframework/context/support/StaticApplicationContextTests.java

@ -26,9 +26,9 @@ import org.springframework.beans.MutablePropertyValues; @@ -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;
/**

6
spring-context/src/test/java/org/springframework/context/support/StaticMessageSourceTests.java

@ -29,9 +29,9 @@ import org.springframework.beans.factory.support.PropertiesBeanDefinitionReader; @@ -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;

2
spring-context/src/test/java/org/springframework/jndi/JndiObjectFactoryBeanTests.java

@ -25,7 +25,7 @@ import org.springframework.beans.factory.support.DefaultListableBeanFactory; @@ -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;

2
spring-context/src/test/java/org/springframework/jndi/JndiPropertySourceTests.java

@ -21,7 +21,7 @@ import javax.naming.NamingException; @@ -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;

8
spring-context/src/test/resources/org/springframework/cache/config/annotationDrivenCacheConfig.xml vendored

@ -36,13 +36,13 @@ @@ -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">

8
spring-context/src/test/resources/org/springframework/cache/config/annotationDrivenCacheNamespace.xml vendored

@ -26,15 +26,15 @@ @@ -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">

8
spring-context/src/test/resources/org/springframework/cache/config/cache-advice.xml vendored

@ -112,9 +112,9 @@ @@ -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 @@ @@ -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>

2
spring-context/src/test/resources/org/springframework/jmx/export/propertyPlaceholderConfigurer.xml

@ -17,7 +17,7 @@ @@ -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>

8
spring-context/src/testFixtures/java/org/springframework/context/test/fixtures/AbstractApplicationContextTests.java → spring-context/src/testFixtures/java/org/springframework/context/testfixture/AbstractApplicationContextTests.java

@ -14,7 +14,7 @@ @@ -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; @@ -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;

2
spring-context/src/testFixtures/java/org/springframework/context/test/fixtures/SimpleMapScope.java → spring-context/src/testFixtures/java/org/springframework/context/testfixture/SimpleMapScope.java

@ -14,7 +14,7 @@ @@ -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;

2
spring-context/src/testFixtures/java/org/springframework/context/test/fixtures/beans/ACATester.java → spring-context/src/testFixtures/java/org/springframework/context/testfixture/beans/ACATester.java

@ -14,7 +14,7 @@ @@ -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;

2
spring-context/src/testFixtures/java/org/springframework/context/test/fixtures/beans/BeanThatBroadcasts.java → spring-context/src/testFixtures/java/org/springframework/context/testfixture/beans/BeanThatBroadcasts.java

@ -14,7 +14,7 @@ @@ -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;

2
spring-context/src/testFixtures/java/org/springframework/context/test/fixtures/beans/BeanThatListens.java → spring-context/src/testFixtures/java/org/springframework/context/testfixture/beans/BeanThatListens.java

@ -14,7 +14,7 @@ @@ -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;

2
spring-context/src/testFixtures/java/org/springframework/context/test/fixtures/beans/TestApplicationListener.java → spring-context/src/testFixtures/java/org/springframework/context/testfixture/beans/TestApplicationListener.java

@ -14,7 +14,7 @@ @@ -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;

8
spring-context/src/testFixtures/java/org/springframework/context/test/fixtures/cache/AbstractCacheAnnotationTests.java → spring-context/src/testFixtures/java/org/springframework/context/testfixture/cache/AbstractCacheAnnotationTests.java vendored

@ -14,7 +14,7 @@ @@ -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; @@ -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;

2
spring-context/src/testFixtures/java/org/springframework/context/test/fixtures/cache/AbstractCacheTests.java → spring-context/src/testFixtures/java/org/springframework/context/testfixture/cache/AbstractCacheTests.java vendored

@ -14,7 +14,7 @@ @@ -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;

2
spring-context/src/testFixtures/java/org/springframework/context/test/fixtures/cache/AbstractValueAdaptingCacheTests.java → spring-context/src/testFixtures/java/org/springframework/context/testfixture/cache/AbstractValueAdaptingCacheTests.java vendored

@ -14,7 +14,7 @@ @@ -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;

2
spring-context/src/testFixtures/java/org/springframework/context/test/fixtures/cache/CacheTestUtils.java → spring-context/src/testFixtures/java/org/springframework/context/testfixture/cache/CacheTestUtils.java vendored

@ -14,7 +14,7 @@ @@ -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;

2
spring-context/src/testFixtures/java/org/springframework/context/test/fixtures/cache/SomeCustomKeyGenerator.java → spring-context/src/testFixtures/java/org/springframework/context/testfixture/cache/SomeCustomKeyGenerator.java vendored

@ -14,7 +14,7 @@ @@ -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;

2
spring-context/src/testFixtures/java/org/springframework/context/test/fixtures/cache/SomeKeyGenerator.java → spring-context/src/testFixtures/java/org/springframework/context/testfixture/cache/SomeKeyGenerator.java vendored

@ -14,7 +14,7 @@ @@ -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;

2
spring-context/src/testFixtures/java/org/springframework/context/test/fixtures/cache/beans/AnnotatedClassCacheableService.java → spring-context/src/testFixtures/java/org/springframework/context/testfixture/cache/beans/AnnotatedClassCacheableService.java vendored

@ -14,7 +14,7 @@ @@ -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;

2
spring-context/src/testFixtures/java/org/springframework/context/test/fixtures/cache/beans/CacheableService.java → spring-context/src/testFixtures/java/org/springframework/context/testfixture/cache/beans/CacheableService.java vendored

@ -14,7 +14,7 @@ @@ -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.

2
spring-context/src/testFixtures/java/org/springframework/context/test/fixtures/cache/beans/DefaultCacheableService.java → spring-context/src/testFixtures/java/org/springframework/context/testfixture/cache/beans/DefaultCacheableService.java vendored

@ -14,7 +14,7 @@ @@ -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;

2
spring-context/src/testFixtures/java/org/springframework/context/test/fixtures/cache/beans/TestEntity.java → spring-context/src/testFixtures/java/org/springframework/context/testfixture/cache/beans/TestEntity.java vendored

@ -14,7 +14,7 @@ @@ -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;

2
spring-context/src/testFixtures/java/org/springframework/context/test/fixtures/index/CandidateComponentsTestClassLoader.java → spring-context/src/testFixtures/java/org/springframework/context/testfixture/index/CandidateComponentsTestClassLoader.java

@ -14,7 +14,7 @@ @@ -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;

4
spring-context/src/testFixtures/java/org/springframework/context/test/fixtures/jndi/ExpectedLookupTemplate.java → spring-context/src/testFixtures/java/org/springframework/context/testfixture/jndi/ExpectedLookupTemplate.java

@ -14,7 +14,7 @@ @@ -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; @@ -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.

4
spring-context/src/testFixtures/java/org/springframework/context/test/fixtures/jndi/SimpleNamingContext.java → spring-context/src/testFixtures/java/org/springframework/context/testfixture/jndi/SimpleNamingContext.java

@ -14,7 +14,7 @@ @@ -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 { @@ -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) {

2
spring-context/src/testFixtures/java/org/springframework/context/test/fixtures/jndi/SimpleNamingContextBuilder.java → spring-context/src/testFixtures/java/org/springframework/context/testfixture/jndi/SimpleNamingContextBuilder.java

@ -14,7 +14,7 @@ @@ -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;

2
spring-orm/src/test/java/org/springframework/orm/jpa/persistenceunit/DefaultPersistenceUnitManagerTests.java

@ -18,7 +18,7 @@ package org.springframework.orm.jpa.persistenceunit; @@ -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;

2
spring-orm/src/test/java/org/springframework/orm/jpa/persistenceunit/PersistenceXmlParsingTests.java

@ -28,7 +28,7 @@ import javax.sql.DataSource; @@ -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;

4
spring-orm/src/test/java/org/springframework/orm/jpa/support/PersistenceInjectionTests.java

@ -37,8 +37,8 @@ import org.springframework.beans.factory.FactoryBean; @@ -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;

2
spring-tx/src/test/java/org/springframework/transaction/JndiJtaTransactionManagerTests.java

@ -23,7 +23,7 @@ import javax.transaction.UserTransaction; @@ -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;

2
spring-tx/src/test/java/org/springframework/transaction/jta/WebSphereUowTransactionManagerTests.java

@ -25,7 +25,7 @@ import com.ibm.wsspi.uow.UOWException; @@ -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;

2
spring-tx/src/test/java/org/springframework/transaction/support/JtaTransactionManagerSerializationTests.java

@ -21,7 +21,7 @@ import javax.transaction.UserTransaction; @@ -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;

2
spring-web/src/test/java/org/springframework/web/context/support/StandardServletEnvironmentTests.java

@ -18,7 +18,7 @@ package org.springframework.web.context.support; @@ -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;

6
spring-webmvc/src/test/java/org/springframework/web/context/XmlWebApplicationContextTests.java

@ -31,8 +31,8 @@ import org.springframework.beans.factory.config.ConfigurableListableBeanFactory; @@ -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 @@ -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,

4
spring-webmvc/src/test/resources/org/springframework/web/context/WEB-INF/applicationContext.xml

@ -25,9 +25,9 @@ @@ -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 -->

6
spring-webmvc/src/test/resources/org/springframework/web/context/WEB-INF/context-addition.xml

@ -3,11 +3,11 @@ @@ -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>

6
spring-webmvc/src/test/resources/org/springframework/web/context/WEB-INF/test-servlet.xml

@ -11,9 +11,9 @@ @@ -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 @@ @@ -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>

Loading…
Cancel
Save