Rename test fixture package in spring-beans

See gh-23550
This commit is contained in:
Sam Brannen
2019-12-29 17:37:19 +01:00
parent 4260c34b47
commit 7cd4ddf5fc
503 changed files with 1148 additions and 1142 deletions

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.beans.test.fixtures.beans;
package org.springframework.beans.testfixture.beans;
public interface AgeHolder {

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.beans.test.fixtures.beans;
package org.springframework.beans.testfixture.beans;
/**
* @author Stephane Nicoll

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.beans.test.fixtures.beans;
package org.springframework.beans.testfixture.beans;
/**
* @author Juergen Hoeller

View File

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

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.beans.test.fixtures.beans;
package org.springframework.beans.testfixture.beans;
/**
* @author Rob Harrop

View File

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

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.beans.test.fixtures.beans;
package org.springframework.beans.testfixture.beans;
/**
* @author Juergen Hoeller

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.beans.test.fixtures.beans;
package org.springframework.beans.testfixture.beans;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.BeanFactoryAware;

View File

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

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.beans.test.fixtures.beans;
package org.springframework.beans.testfixture.beans;
/**
* @author Costin Leau

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.beans.test.fixtures.beans;
package org.springframework.beans.testfixture.beans;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.BeanFactory;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.beans.test.fixtures.beans;
package org.springframework.beans.testfixture.beans;
public class Employee extends TestBean {

View File

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

View File

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

View File

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

View File

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

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.beans.test.fixtures.beans;
package org.springframework.beans.testfixture.beans;
public interface INestedTestBean {

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.beans.test.fixtures.beans;
package org.springframework.beans.testfixture.beans;
public interface IOther {

View File

@@ -14,12 +14,12 @@
* limitations under the License.
*/
package org.springframework.beans.test.fixtures.beans;
package org.springframework.beans.testfixture.beans;
import java.io.IOException;
/**
* Interface used for {@link org.springframework.beans.test.fixtures.beans.TestBean}.
* Interface used for {@link org.springframework.beans.testfixture.beans.TestBean}.
*
* <p>Two methods are the same as on Person, but if this
* extends person it breaks quite a few tests..

View File

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

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.beans.test.fixtures.beans;
package org.springframework.beans.testfixture.beans;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.BeanFactory;

View File

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

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.beans.test.fixtures.beans;
package org.springframework.beans.testfixture.beans;
/**
* Simple nested test bean used for testing bean factories, AOP framework etc.

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.beans.test.fixtures.beans;
package org.springframework.beans.testfixture.beans;
import java.math.BigDecimal;
import java.math.BigInteger;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.beans.test.fixtures.beans;
package org.springframework.beans.testfixture.beans;
/**
* @see org.springframework.beans.factory.config.FieldRetrievingFactoryBeanTests

View File

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

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.beans.test.fixtures.beans;
package org.springframework.beans.testfixture.beans;
/**
* @author Rob Harrop

View File

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

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.beans.test.fixtures.beans;
package org.springframework.beans.testfixture.beans;
/**
* Bean that changes state on a business invocation, so that

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.beans.test.fixtures.beans;
package org.springframework.beans.testfixture.beans;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.beans.test.fixtures.beans;
package org.springframework.beans.testfixture.beans;
import java.io.IOException;
import java.util.ArrayList;
@@ -421,7 +421,7 @@ public class TestBean implements BeanNameAware, BeanFactoryAware, ITestBean, IOt
/**
* @see org.springframework.beans.test.fixtures.beans.ITestBean#exceptional(Throwable)
* @see org.springframework.beans.testfixture.beans.ITestBean#exceptional(Throwable)
*/
@Override
public void exceptional(Throwable t) throws Throwable {
@@ -435,7 +435,7 @@ public class TestBean implements BeanNameAware, BeanFactoryAware, ITestBean, IOt
throw new IOException();
}
/**
* @see org.springframework.beans.test.fixtures.beans.ITestBean#returnsThis()
* @see org.springframework.beans.testfixture.beans.ITestBean#returnsThis()
*/
@Override
public Object returnsThis() {
@@ -443,7 +443,7 @@ public class TestBean implements BeanNameAware, BeanFactoryAware, ITestBean, IOt
}
/**
* @see org.springframework.beans.test.fixtures.beans.IOther#absquatulate()
* @see org.springframework.beans.testfixture.beans.IOther#absquatulate()
*/
@Override
public void absquatulate() {

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.beans.test.fixtures.beans.factory;
package org.springframework.beans.testfixture.beans.factory;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.BeanFactory;
@@ -24,7 +24,7 @@ import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.FactoryBean;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.config.AutowireCapableBeanFactory;
import org.springframework.beans.test.fixtures.beans.TestBean;
import org.springframework.beans.testfixture.beans.TestBean;
/**
* Simple factory to allow testing of FactoryBean support in AbstractBeanFactory.

View File

@@ -1,4 +1,4 @@
/**
* General purpose sample beans that can be used with tests.
*/
package org.springframework.beans.test.fixtures.beans;
package org.springframework.beans.testfixture.beans;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.beans.test.fixtures.beans.subpkg;
package org.springframework.beans.testfixture.beans.subpkg;
/**
* Used for testing pointcut matching.

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.beans.test.fixtures.factory.xml;
package org.springframework.beans.testfixture.factory.xml;
import java.beans.PropertyEditorSupport;
import java.util.StringTokenizer;
@@ -29,10 +29,10 @@ import org.springframework.beans.factory.BeanIsNotAFactoryException;
import org.springframework.beans.factory.BeanNotOfRequiredTypeException;
import org.springframework.beans.factory.NoSuchBeanDefinitionException;
import org.springframework.beans.factory.config.ConfigurableBeanFactory;
import org.springframework.beans.test.fixtures.beans.LifecycleBean;
import org.springframework.beans.test.fixtures.beans.MustBeInitialized;
import org.springframework.beans.test.fixtures.beans.TestBean;
import org.springframework.beans.test.fixtures.beans.factory.DummyFactory;
import org.springframework.beans.testfixture.beans.LifecycleBean;
import org.springframework.beans.testfixture.beans.MustBeInitialized;
import org.springframework.beans.testfixture.beans.TestBean;
import org.springframework.beans.testfixture.beans.factory.DummyFactory;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;

View File

@@ -14,14 +14,14 @@
* limitations under the License.
*/
package org.springframework.beans.test.fixtures.factory.xml;
package org.springframework.beans.testfixture.factory.xml;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.FactoryBean;
import org.springframework.beans.factory.ListableBeanFactory;
import org.springframework.beans.test.fixtures.beans.TestBean;
import org.springframework.beans.testfixture.beans.TestBean;
import static org.assertj.core.api.Assertions.assertThat;
@@ -55,13 +55,13 @@ public abstract class AbstractListableBeanFactoryTests extends AbstractBeanFacto
protected void assertTestBeanCount(int count) {
String[] defNames = getListableBeanFactory().getBeanNamesForType(TestBean.class, true, false);
assertThat(defNames.length == count).as("We should have " + count + " beans for class org.springframework.beans.test.fixtures.beans.TestBean, not " +
assertThat(defNames.length == count).as("We should have " + count + " beans for class org.springframework.beans.testfixture.beans.TestBean, not " +
defNames.length).isTrue();
int countIncludingFactoryBeans = count + 2;
String[] names = getListableBeanFactory().getBeanNamesForType(TestBean.class, true, true);
assertThat(names.length == countIncludingFactoryBeans).as("We should have " + countIncludingFactoryBeans +
" beans for class org.springframework.beans.test.fixtures.beans.TestBean, not " + names.length).isTrue();
" beans for class org.springframework.beans.testfixture.beans.TestBean, not " + names.length).isTrue();
}
@Test