parent
4260c34b47
commit
7cd4ddf5fc
|
@ -21,8 +21,8 @@ import org.junit.jupiter.api.Test;
|
||||||
import org.springframework.aop.framework.Advised;
|
import org.springframework.aop.framework.Advised;
|
||||||
import org.springframework.aop.support.AopUtils;
|
import org.springframework.aop.support.AopUtils;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.beans.test.fixtures.beans.ITestBean;
|
import org.springframework.beans.testfixture.beans.ITestBean;
|
||||||
import org.springframework.beans.test.fixtures.beans.TestBean;
|
import org.springframework.beans.testfixture.beans.TestBean;
|
||||||
import org.springframework.core.testfixture.io.SerializationTestUtils;
|
import org.springframework.core.testfixture.io.SerializationTestUtils;
|
||||||
import org.springframework.mock.web.MockHttpServletRequest;
|
import org.springframework.mock.web.MockHttpServletRequest;
|
||||||
import org.springframework.mock.web.MockHttpSession;
|
import org.springframework.mock.web.MockHttpSession;
|
||||||
|
|
|
@ -28,7 +28,7 @@ import org.springframework.aop.support.AopUtils;
|
||||||
import org.springframework.aop.support.StaticMethodMatcherPointcutAdvisor;
|
import org.springframework.aop.support.StaticMethodMatcherPointcutAdvisor;
|
||||||
import org.springframework.beans.factory.BeanFactory;
|
import org.springframework.beans.factory.BeanFactory;
|
||||||
import org.springframework.beans.factory.InitializingBean;
|
import org.springframework.beans.factory.InitializingBean;
|
||||||
import org.springframework.beans.test.fixtures.beans.ITestBean;
|
import org.springframework.beans.testfixture.beans.ITestBean;
|
||||||
import org.springframework.context.support.ClassPathXmlApplicationContext;
|
import org.springframework.context.support.ClassPathXmlApplicationContext;
|
||||||
import org.springframework.lang.Nullable;
|
import org.springframework.lang.Nullable;
|
||||||
import org.springframework.tests.aop.advice.CountingBeforeAdvice;
|
import org.springframework.tests.aop.advice.CountingBeforeAdvice;
|
||||||
|
|
|
@ -11,19 +11,19 @@
|
||||||
|
|
||||||
<bean id="advice" class="org.springframework.aop.interceptor.DebugInterceptor"/>
|
<bean id="advice" class="org.springframework.aop.interceptor.DebugInterceptor"/>
|
||||||
|
|
||||||
<bean id="testBean" class="org.springframework.beans.test.fixtures.beans.TestBean"/>
|
<bean id="testBean" class="org.springframework.beans.testfixture.beans.TestBean"/>
|
||||||
|
|
||||||
<bean id="singletonScoped" class="org.springframework.beans.test.fixtures.beans.TestBean">
|
<bean id="singletonScoped" class="org.springframework.beans.testfixture.beans.TestBean">
|
||||||
<aop:scoped-proxy/>
|
<aop:scoped-proxy/>
|
||||||
<property name="name" value="Rob Harrop"/>
|
<property name="name" value="Rob Harrop"/>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<bean id="requestScoped" class="org.springframework.beans.test.fixtures.beans.TestBean" scope="request">
|
<bean id="requestScoped" class="org.springframework.beans.testfixture.beans.TestBean" scope="request">
|
||||||
<aop:scoped-proxy/>
|
<aop:scoped-proxy/>
|
||||||
<property name="name" value="Rob Harrop"/>
|
<property name="name" value="Rob Harrop"/>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<bean id="sessionScoped" name="sessionScopedAlias" class="org.springframework.beans.test.fixtures.beans.TestBean" scope="session">
|
<bean id="sessionScoped" name="sessionScopedAlias" class="org.springframework.beans.testfixture.beans.TestBean" scope="session">
|
||||||
<aop:scoped-proxy proxy-target-class="false"/>
|
<aop:scoped-proxy proxy-target-class="false"/>
|
||||||
<property name="name" value="Rob Harrop"/>
|
<property name="name" value="Rob Harrop"/>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
|
@ -74,20 +74,20 @@
|
||||||
|
|
||||||
<!-- These two beans would otherwise be eligible for autoproxying -->
|
<!-- These two beans would otherwise be eligible for autoproxying -->
|
||||||
|
|
||||||
<bean id="singletonDependency" class="org.springframework.beans.test.fixtures.beans.TestBean" scope="singleton"/>
|
<bean id="singletonDependency" class="org.springframework.beans.testfixture.beans.TestBean" scope="singleton"/>
|
||||||
|
|
||||||
<bean id="prototypeDependency" class="org.springframework.beans.test.fixtures.beans.TestBean" scope="prototype"/>
|
<bean id="prototypeDependency" class="org.springframework.beans.testfixture.beans.TestBean" scope="prototype"/>
|
||||||
|
|
||||||
<!-- ====== End test for prototype definitions to try to provoke circular references ========================= -->
|
<!-- ====== End test for prototype definitions to try to provoke circular references ========================= -->
|
||||||
|
|
||||||
<bean class="org.springframework.aop.support.RegexpMethodPointcutAdvisor">
|
<bean class="org.springframework.aop.support.RegexpMethodPointcutAdvisor">
|
||||||
<property name="advice"><ref bean="countingAdvice"/></property>
|
<property name="advice"><ref bean="countingAdvice"/></property>
|
||||||
<property name="pattern"><value>org.springframework.beans.test.fixtures.beans.ITestBean.getName</value></property>
|
<property name="pattern"><value>org.springframework.beans.testfixture.beans.ITestBean.getName</value></property>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<bean id="countingAdvice" class="org.springframework.tests.aop.advice.CountingAfterReturningAdvice"/>
|
<bean id="countingAdvice" class="org.springframework.tests.aop.advice.CountingAfterReturningAdvice"/>
|
||||||
|
|
||||||
<bean id="test" class="org.springframework.beans.test.fixtures.beans.TestBean">
|
<bean id="test" class="org.springframework.beans.testfixture.beans.TestBean">
|
||||||
<property name="age"><value>4</value></property>
|
<property name="age"><value>4</value></property>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
|
@ -97,7 +97,7 @@
|
||||||
|
|
||||||
<!-- The following beans test whether auto-proxying falls over for a null value -->
|
<!-- The following beans test whether auto-proxying falls over for a null value -->
|
||||||
|
|
||||||
<bean id="tb" class="org.springframework.beans.test.fixtures.beans.TestBean"/>
|
<bean id="tb" class="org.springframework.beans.testfixture.beans.TestBean"/>
|
||||||
|
|
||||||
<bean id="nullValueReturned" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
|
<bean id="nullValueReturned" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
|
||||||
<property name="targetObject" ref="tb"/>
|
<property name="targetObject" ref="tb"/>
|
||||||
|
|
|
@ -31,10 +31,10 @@ import org.springframework.aop.MethodMatcher;
|
||||||
import org.springframework.aop.Pointcut;
|
import org.springframework.aop.Pointcut;
|
||||||
import org.springframework.aop.framework.ProxyFactory;
|
import org.springframework.aop.framework.ProxyFactory;
|
||||||
import org.springframework.aop.support.DefaultPointcutAdvisor;
|
import org.springframework.aop.support.DefaultPointcutAdvisor;
|
||||||
import org.springframework.beans.test.fixtures.beans.IOther;
|
import org.springframework.beans.testfixture.beans.IOther;
|
||||||
import org.springframework.beans.test.fixtures.beans.ITestBean;
|
import org.springframework.beans.testfixture.beans.ITestBean;
|
||||||
import org.springframework.beans.test.fixtures.beans.TestBean;
|
import org.springframework.beans.testfixture.beans.TestBean;
|
||||||
import org.springframework.beans.test.fixtures.beans.subpkg.DeepBean;
|
import org.springframework.beans.testfixture.beans.subpkg.DeepBean;
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
|
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
|
||||||
|
@ -67,7 +67,7 @@ public class AspectJExpressionPointcutTests {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testMatchExplicit() {
|
public void testMatchExplicit() {
|
||||||
String expression = "execution(int org.springframework.beans.test.fixtures.beans.TestBean.getAge())";
|
String expression = "execution(int org.springframework.beans.testfixture.beans.TestBean.getAge())";
|
||||||
|
|
||||||
Pointcut pointcut = getPointcut(expression);
|
Pointcut pointcut = getPointcut(expression);
|
||||||
ClassFilter classFilter = pointcut.getClassFilter();
|
ClassFilter classFilter = pointcut.getClassFilter();
|
||||||
|
@ -117,8 +117,8 @@ public class AspectJExpressionPointcutTests {
|
||||||
* @param which this or target
|
* @param which this or target
|
||||||
*/
|
*/
|
||||||
private void testThisOrTarget(String which) throws SecurityException, NoSuchMethodException {
|
private void testThisOrTarget(String which) throws SecurityException, NoSuchMethodException {
|
||||||
String matchesTestBean = which + "(org.springframework.beans.test.fixtures.beans.TestBean)";
|
String matchesTestBean = which + "(org.springframework.beans.testfixture.beans.TestBean)";
|
||||||
String matchesIOther = which + "(org.springframework.beans.test.fixtures.beans.IOther)";
|
String matchesIOther = which + "(org.springframework.beans.testfixture.beans.IOther)";
|
||||||
AspectJExpressionPointcut testBeanPc = new AspectJExpressionPointcut();
|
AspectJExpressionPointcut testBeanPc = new AspectJExpressionPointcut();
|
||||||
testBeanPc.setExpression(matchesTestBean);
|
testBeanPc.setExpression(matchesTestBean);
|
||||||
|
|
||||||
|
@ -142,7 +142,7 @@ public class AspectJExpressionPointcutTests {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void testWithinPackage(boolean matchSubpackages) throws SecurityException, NoSuchMethodException {
|
private void testWithinPackage(boolean matchSubpackages) throws SecurityException, NoSuchMethodException {
|
||||||
String withinBeansPackage = "within(org.springframework.beans.test.fixtures.beans.";
|
String withinBeansPackage = "within(org.springframework.beans.testfixture.beans.";
|
||||||
// Subpackages are matched by **
|
// Subpackages are matched by **
|
||||||
if (matchSubpackages) {
|
if (matchSubpackages) {
|
||||||
withinBeansPackage += ".";
|
withinBeansPackage += ".";
|
||||||
|
@ -187,7 +187,7 @@ public class AspectJExpressionPointcutTests {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testMatchWithArgs() throws Exception {
|
public void testMatchWithArgs() throws Exception {
|
||||||
String expression = "execution(void org.springframework.beans.test.fixtures.beans.TestBean.setSomeNumber(Number)) && args(Double)";
|
String expression = "execution(void org.springframework.beans.testfixture.beans.TestBean.setSomeNumber(Number)) && args(Double)";
|
||||||
|
|
||||||
Pointcut pointcut = getPointcut(expression);
|
Pointcut pointcut = getPointcut(expression);
|
||||||
ClassFilter classFilter = pointcut.getClassFilter();
|
ClassFilter classFilter = pointcut.getClassFilter();
|
||||||
|
@ -206,7 +206,7 @@ public class AspectJExpressionPointcutTests {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testSimpleAdvice() {
|
public void testSimpleAdvice() {
|
||||||
String expression = "execution(int org.springframework.beans.test.fixtures.beans.TestBean.getAge())";
|
String expression = "execution(int org.springframework.beans.testfixture.beans.TestBean.getAge())";
|
||||||
CallCountingInterceptor interceptor = new CallCountingInterceptor();
|
CallCountingInterceptor interceptor = new CallCountingInterceptor();
|
||||||
TestBean testBean = getAdvisedProxy(expression, interceptor);
|
TestBean testBean = getAdvisedProxy(expression, interceptor);
|
||||||
|
|
||||||
|
@ -219,7 +219,7 @@ public class AspectJExpressionPointcutTests {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testDynamicMatchingProxy() {
|
public void testDynamicMatchingProxy() {
|
||||||
String expression = "execution(void org.springframework.beans.test.fixtures.beans.TestBean.setSomeNumber(Number)) && args(Double)";
|
String expression = "execution(void org.springframework.beans.testfixture.beans.TestBean.setSomeNumber(Number)) && args(Double)";
|
||||||
CallCountingInterceptor interceptor = new CallCountingInterceptor();
|
CallCountingInterceptor interceptor = new CallCountingInterceptor();
|
||||||
TestBean testBean = getAdvisedProxy(expression, interceptor);
|
TestBean testBean = getAdvisedProxy(expression, interceptor);
|
||||||
|
|
||||||
|
@ -233,7 +233,7 @@ public class AspectJExpressionPointcutTests {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testInvalidExpression() {
|
public void testInvalidExpression() {
|
||||||
String expression = "execution(void org.springframework.beans.test.fixtures.beans.TestBean.setSomeNumber(Number) && args(Double)";
|
String expression = "execution(void org.springframework.beans.testfixture.beans.TestBean.setSomeNumber(Number) && args(Double)";
|
||||||
assertThatIllegalArgumentException().isThrownBy(
|
assertThatIllegalArgumentException().isThrownBy(
|
||||||
getPointcut(expression)::getClassFilter); // call to getClassFilter forces resolution
|
getPointcut(expression)::getClassFilter); // call to getClassFilter forces resolution
|
||||||
}
|
}
|
||||||
|
@ -264,7 +264,7 @@ public class AspectJExpressionPointcutTests {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testWithUnsupportedPointcutPrimitive() {
|
public void testWithUnsupportedPointcutPrimitive() {
|
||||||
String expression = "call(int org.springframework.beans.test.fixtures.beans.TestBean.getAge())";
|
String expression = "call(int org.springframework.beans.testfixture.beans.TestBean.getAge())";
|
||||||
assertThatExceptionOfType(UnsupportedPointcutPrimitiveException.class).isThrownBy(() ->
|
assertThatExceptionOfType(UnsupportedPointcutPrimitiveException.class).isThrownBy(() ->
|
||||||
getPointcut(expression).getClassFilter()) // call to getClassFilter forces resolution...
|
getPointcut(expression).getClassFilter()) // call to getClassFilter forces resolution...
|
||||||
.satisfies(ex -> assertThat(ex.getUnsupportedPrimitive()).isEqualTo(PointcutPrimitive.CALL));
|
.satisfies(ex -> assertThat(ex.getUnsupportedPrimitive()).isEqualTo(PointcutPrimitive.CALL));
|
||||||
|
|
|
@ -18,7 +18,7 @@ package org.springframework.aop.aspectj;
|
||||||
|
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
import org.springframework.beans.test.fixtures.beans.TestBean;
|
import org.springframework.beans.testfixture.beans.TestBean;
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
|
|
||||||
|
|
|
@ -33,8 +33,8 @@ import org.springframework.aop.framework.AopContext;
|
||||||
import org.springframework.aop.framework.ProxyFactory;
|
import org.springframework.aop.framework.ProxyFactory;
|
||||||
import org.springframework.aop.interceptor.ExposeInvocationInterceptor;
|
import org.springframework.aop.interceptor.ExposeInvocationInterceptor;
|
||||||
import org.springframework.aop.support.AopUtils;
|
import org.springframework.aop.support.AopUtils;
|
||||||
import org.springframework.beans.test.fixtures.beans.ITestBean;
|
import org.springframework.beans.testfixture.beans.ITestBean;
|
||||||
import org.springframework.beans.test.fixtures.beans.TestBean;
|
import org.springframework.beans.testfixture.beans.TestBean;
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
|
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
|
||||||
|
|
|
@ -27,7 +27,7 @@ import test.annotation.EmptySpringAnnotation;
|
||||||
import test.annotation.transaction.Tx;
|
import test.annotation.transaction.Tx;
|
||||||
|
|
||||||
import org.springframework.aop.framework.ProxyFactory;
|
import org.springframework.aop.framework.ProxyFactory;
|
||||||
import org.springframework.beans.test.fixtures.beans.TestBean;
|
import org.springframework.beans.testfixture.beans.TestBean;
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
|
|
||||||
|
@ -56,7 +56,7 @@ public class TigerAspectJExpressionPointcutTests {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testMatchGenericArgument() {
|
public void testMatchGenericArgument() {
|
||||||
String expression = "execution(* set*(java.util.List<org.springframework.beans.test.fixtures.beans.TestBean>) )";
|
String expression = "execution(* set*(java.util.List<org.springframework.beans.testfixture.beans.TestBean>) )";
|
||||||
AspectJExpressionPointcut ajexp = new AspectJExpressionPointcut();
|
AspectJExpressionPointcut ajexp = new AspectJExpressionPointcut();
|
||||||
ajexp.setExpression(expression);
|
ajexp.setExpression(expression);
|
||||||
|
|
||||||
|
|
|
@ -20,11 +20,11 @@ import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
import org.springframework.beans.factory.BeanFactory;
|
import org.springframework.beans.factory.BeanFactory;
|
||||||
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
|
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
|
||||||
import org.springframework.beans.test.fixtures.beans.CountingTestBean;
|
import org.springframework.beans.testfixture.beans.CountingTestBean;
|
||||||
import org.springframework.beans.test.fixtures.beans.IOther;
|
import org.springframework.beans.testfixture.beans.IOther;
|
||||||
import org.springframework.beans.test.fixtures.beans.ITestBean;
|
import org.springframework.beans.testfixture.beans.ITestBean;
|
||||||
import org.springframework.beans.test.fixtures.beans.TestBean;
|
import org.springframework.beans.testfixture.beans.TestBean;
|
||||||
import org.springframework.beans.test.fixtures.beans.subpkg.DeepBean;
|
import org.springframework.beans.testfixture.beans.subpkg.DeepBean;
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException;
|
import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException;
|
||||||
|
@ -57,7 +57,7 @@ class TypePatternClassFilterTests {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void validPatternMatching() {
|
void validPatternMatching() {
|
||||||
TypePatternClassFilter tpcf = new TypePatternClassFilter("org.springframework.beans.test.fixtures.beans.*");
|
TypePatternClassFilter tpcf = new TypePatternClassFilter("org.springframework.beans.testfixture.beans.*");
|
||||||
|
|
||||||
assertThat(tpcf.matches(TestBean.class)).as("Must match: in package").isTrue();
|
assertThat(tpcf.matches(TestBean.class)).as("Must match: in package").isTrue();
|
||||||
assertThat(tpcf.matches(ITestBean.class)).as("Must match: in package").isTrue();
|
assertThat(tpcf.matches(ITestBean.class)).as("Must match: in package").isTrue();
|
||||||
|
@ -70,7 +70,7 @@ class TypePatternClassFilterTests {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void subclassMatching() {
|
void subclassMatching() {
|
||||||
TypePatternClassFilter tpcf = new TypePatternClassFilter("org.springframework.beans.test.fixtures.beans.ITestBean+");
|
TypePatternClassFilter tpcf = new TypePatternClassFilter("org.springframework.beans.testfixture.beans.ITestBean+");
|
||||||
|
|
||||||
assertThat(tpcf.matches(TestBean.class)).as("Must match: in package").isTrue();
|
assertThat(tpcf.matches(TestBean.class)).as("Must match: in package").isTrue();
|
||||||
assertThat(tpcf.matches(ITestBean.class)).as("Must match: in package").isTrue();
|
assertThat(tpcf.matches(ITestBean.class)).as("Must match: in package").isTrue();
|
||||||
|
@ -98,8 +98,8 @@ class TypePatternClassFilterTests {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void testEquals() {
|
void testEquals() {
|
||||||
TypePatternClassFilter filter1 = new TypePatternClassFilter("org.springframework.beans.test.fixtures.beans.*");
|
TypePatternClassFilter filter1 = new TypePatternClassFilter("org.springframework.beans.testfixture.beans.*");
|
||||||
TypePatternClassFilter filter2 = new TypePatternClassFilter("org.springframework.beans.test.fixtures.beans.*");
|
TypePatternClassFilter filter2 = new TypePatternClassFilter("org.springframework.beans.testfixture.beans.*");
|
||||||
TypePatternClassFilter filter3 = new TypePatternClassFilter("org.springframework.tests.*");
|
TypePatternClassFilter filter3 = new TypePatternClassFilter("org.springframework.tests.*");
|
||||||
|
|
||||||
assertThat(filter1).isEqualTo(filter2);
|
assertThat(filter1).isEqualTo(filter2);
|
||||||
|
@ -108,8 +108,8 @@ class TypePatternClassFilterTests {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void testHashCode() {
|
void testHashCode() {
|
||||||
TypePatternClassFilter filter1 = new TypePatternClassFilter("org.springframework.beans.test.fixtures.beans.*");
|
TypePatternClassFilter filter1 = new TypePatternClassFilter("org.springframework.beans.testfixture.beans.*");
|
||||||
TypePatternClassFilter filter2 = new TypePatternClassFilter("org.springframework.beans.test.fixtures.beans.*");
|
TypePatternClassFilter filter2 = new TypePatternClassFilter("org.springframework.beans.testfixture.beans.*");
|
||||||
TypePatternClassFilter filter3 = new TypePatternClassFilter("org.springframework.tests.*");
|
TypePatternClassFilter filter3 = new TypePatternClassFilter("org.springframework.tests.*");
|
||||||
|
|
||||||
assertThat(filter1.hashCode()).isEqualTo(filter2.hashCode());
|
assertThat(filter1.hashCode()).isEqualTo(filter2.hashCode());
|
||||||
|
@ -118,11 +118,11 @@ class TypePatternClassFilterTests {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void testToString() {
|
void testToString() {
|
||||||
TypePatternClassFilter filter1 = new TypePatternClassFilter("org.springframework.beans.test.fixtures.beans.*");
|
TypePatternClassFilter filter1 = new TypePatternClassFilter("org.springframework.beans.testfixture.beans.*");
|
||||||
TypePatternClassFilter filter2 = new TypePatternClassFilter("org.springframework.beans.test.fixtures.beans.*");
|
TypePatternClassFilter filter2 = new TypePatternClassFilter("org.springframework.beans.testfixture.beans.*");
|
||||||
|
|
||||||
assertThat(filter1.toString())
|
assertThat(filter1.toString())
|
||||||
.isEqualTo("org.springframework.aop.aspectj.TypePatternClassFilter: org.springframework.beans.test.fixtures.beans.*");
|
.isEqualTo("org.springframework.aop.aspectj.TypePatternClassFilter: org.springframework.beans.testfixture.beans.*");
|
||||||
assertThat(filter1.toString()).isEqualTo(filter2.toString());
|
assertThat(filter1.toString()).isEqualTo(filter2.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -50,8 +50,8 @@ import org.springframework.aop.framework.AopConfigException;
|
||||||
import org.springframework.aop.framework.ProxyFactory;
|
import org.springframework.aop.framework.ProxyFactory;
|
||||||
import org.springframework.aop.interceptor.ExposeInvocationInterceptor;
|
import org.springframework.aop.interceptor.ExposeInvocationInterceptor;
|
||||||
import org.springframework.aop.support.AopUtils;
|
import org.springframework.aop.support.AopUtils;
|
||||||
import org.springframework.beans.test.fixtures.beans.ITestBean;
|
import org.springframework.beans.testfixture.beans.ITestBean;
|
||||||
import org.springframework.beans.test.fixtures.beans.TestBean;
|
import org.springframework.beans.testfixture.beans.TestBean;
|
||||||
import org.springframework.core.OrderComparator;
|
import org.springframework.core.OrderComparator;
|
||||||
import org.springframework.core.Ordered;
|
import org.springframework.core.Ordered;
|
||||||
import org.springframework.core.annotation.Order;
|
import org.springframework.core.annotation.Order;
|
||||||
|
@ -590,7 +590,7 @@ public abstract class AbstractAspectJAdvisorFactoryTests {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Aspect("pertypewithin(org.springframework.beans.test.fixtures.beans.IOther+)")
|
@Aspect("pertypewithin(org.springframework.beans.testfixture.beans.IOther+)")
|
||||||
public static class PerTypeWithinAspect {
|
public static class PerTypeWithinAspect {
|
||||||
|
|
||||||
public int count;
|
public int count;
|
||||||
|
@ -931,7 +931,7 @@ abstract class AbstractMakeModifiable {
|
||||||
@Aspect
|
@Aspect
|
||||||
class MakeITestBeanModifiable extends AbstractMakeModifiable {
|
class MakeITestBeanModifiable extends AbstractMakeModifiable {
|
||||||
|
|
||||||
@DeclareParents(value = "org.springframework.beans.test.fixtures.beans.ITestBean+",
|
@DeclareParents(value = "org.springframework.beans.testfixture.beans.ITestBean+",
|
||||||
defaultImpl=ModifiableImpl.class)
|
defaultImpl=ModifiableImpl.class)
|
||||||
public static MutableModifiable mixin;
|
public static MutableModifiable mixin;
|
||||||
|
|
||||||
|
|
|
@ -27,8 +27,8 @@ import org.aspectj.lang.annotation.Pointcut;
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
import org.springframework.aop.aspectj.AspectJAdviceParameterNameDiscoverer;
|
import org.springframework.aop.aspectj.AspectJAdviceParameterNameDiscoverer;
|
||||||
import org.springframework.beans.test.fixtures.beans.ITestBean;
|
import org.springframework.beans.testfixture.beans.ITestBean;
|
||||||
import org.springframework.beans.test.fixtures.beans.TestBean;
|
import org.springframework.beans.testfixture.beans.TestBean;
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException;
|
import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException;
|
||||||
|
|
|
@ -23,7 +23,7 @@ import org.springframework.aop.Pointcut;
|
||||||
import org.springframework.aop.aspectj.AspectJExpressionPointcut;
|
import org.springframework.aop.aspectj.AspectJExpressionPointcut;
|
||||||
import org.springframework.aop.aspectj.AspectJExpressionPointcutTests;
|
import org.springframework.aop.aspectj.AspectJExpressionPointcutTests;
|
||||||
import org.springframework.aop.framework.AopConfigException;
|
import org.springframework.aop.framework.AopConfigException;
|
||||||
import org.springframework.beans.test.fixtures.beans.TestBean;
|
import org.springframework.beans.testfixture.beans.TestBean;
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
|
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
|
||||||
|
|
|
@ -29,7 +29,7 @@ import org.springframework.beans.factory.support.DefaultListableBeanFactory;
|
||||||
import org.springframework.beans.factory.xml.ParserContext;
|
import org.springframework.beans.factory.xml.ParserContext;
|
||||||
import org.springframework.beans.factory.xml.XmlBeanDefinitionReader;
|
import org.springframework.beans.factory.xml.XmlBeanDefinitionReader;
|
||||||
import org.springframework.beans.factory.xml.XmlReaderContext;
|
import org.springframework.beans.factory.xml.XmlReaderContext;
|
||||||
import org.springframework.beans.test.fixtures.beans.CollectingReaderEventListener;
|
import org.springframework.beans.testfixture.beans.CollectingReaderEventListener;
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@ import org.springframework.beans.factory.parsing.ComponentDefinition;
|
||||||
import org.springframework.beans.factory.parsing.CompositeComponentDefinition;
|
import org.springframework.beans.factory.parsing.CompositeComponentDefinition;
|
||||||
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
|
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
|
||||||
import org.springframework.beans.factory.xml.XmlBeanDefinitionReader;
|
import org.springframework.beans.factory.xml.XmlBeanDefinitionReader;
|
||||||
import org.springframework.beans.test.fixtures.beans.CollectingReaderEventListener;
|
import org.springframework.beans.testfixture.beans.CollectingReaderEventListener;
|
||||||
import org.springframework.core.io.Resource;
|
import org.springframework.core.io.Resource;
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
|
|
|
@ -23,8 +23,8 @@ import java.util.List;
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
import org.springframework.aop.SpringProxy;
|
import org.springframework.aop.SpringProxy;
|
||||||
import org.springframework.beans.test.fixtures.beans.ITestBean;
|
import org.springframework.beans.testfixture.beans.ITestBean;
|
||||||
import org.springframework.beans.test.fixtures.beans.TestBean;
|
import org.springframework.beans.testfixture.beans.TestBean;
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException;
|
import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException;
|
||||||
|
|
|
@ -19,8 +19,8 @@ package org.springframework.aop.framework;
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
import org.springframework.aop.support.DelegatingIntroductionInterceptor;
|
import org.springframework.aop.support.DelegatingIntroductionInterceptor;
|
||||||
import org.springframework.beans.test.fixtures.beans.ITestBean;
|
import org.springframework.beans.testfixture.beans.ITestBean;
|
||||||
import org.springframework.beans.test.fixtures.beans.TestBean;
|
import org.springframework.beans.testfixture.beans.TestBean;
|
||||||
import org.springframework.util.StopWatch;
|
import org.springframework.util.StopWatch;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -23,7 +23,7 @@ import java.util.List;
|
||||||
import org.aopalliance.intercept.MethodInterceptor;
|
import org.aopalliance.intercept.MethodInterceptor;
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
import org.springframework.beans.test.fixtures.beans.TestBean;
|
import org.springframework.beans.testfixture.beans.TestBean;
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
|
|
||||||
|
|
|
@ -34,9 +34,9 @@ import org.springframework.aop.support.AopUtils;
|
||||||
import org.springframework.aop.support.DefaultIntroductionAdvisor;
|
import org.springframework.aop.support.DefaultIntroductionAdvisor;
|
||||||
import org.springframework.aop.support.DefaultPointcutAdvisor;
|
import org.springframework.aop.support.DefaultPointcutAdvisor;
|
||||||
import org.springframework.aop.support.DelegatingIntroductionInterceptor;
|
import org.springframework.aop.support.DelegatingIntroductionInterceptor;
|
||||||
import org.springframework.beans.test.fixtures.beans.IOther;
|
import org.springframework.beans.testfixture.beans.IOther;
|
||||||
import org.springframework.beans.test.fixtures.beans.ITestBean;
|
import org.springframework.beans.testfixture.beans.ITestBean;
|
||||||
import org.springframework.beans.test.fixtures.beans.TestBean;
|
import org.springframework.beans.testfixture.beans.TestBean;
|
||||||
import org.springframework.core.annotation.AnnotationAwareOrderComparator;
|
import org.springframework.core.annotation.AnnotationAwareOrderComparator;
|
||||||
import org.springframework.core.annotation.Order;
|
import org.springframework.core.annotation.Order;
|
||||||
import org.springframework.core.testfixture.TimeStamped;
|
import org.springframework.core.testfixture.TimeStamped;
|
||||||
|
|
|
@ -22,9 +22,9 @@ import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
import org.springframework.aop.framework.Advised;
|
import org.springframework.aop.framework.Advised;
|
||||||
import org.springframework.aop.framework.ProxyFactory;
|
import org.springframework.aop.framework.ProxyFactory;
|
||||||
import org.springframework.beans.test.fixtures.beans.DerivedTestBean;
|
import org.springframework.beans.testfixture.beans.DerivedTestBean;
|
||||||
import org.springframework.beans.test.fixtures.beans.ITestBean;
|
import org.springframework.beans.testfixture.beans.ITestBean;
|
||||||
import org.springframework.beans.test.fixtures.beans.TestBean;
|
import org.springframework.beans.testfixture.beans.TestBean;
|
||||||
import org.springframework.core.testfixture.io.SerializationTestUtils;
|
import org.springframework.core.testfixture.io.SerializationTestUtils;
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
|
|
|
@ -20,8 +20,8 @@ import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
import org.springframework.aop.framework.ProxyFactory;
|
import org.springframework.aop.framework.ProxyFactory;
|
||||||
import org.springframework.beans.factory.NamedBean;
|
import org.springframework.beans.factory.NamedBean;
|
||||||
import org.springframework.beans.test.fixtures.beans.ITestBean;
|
import org.springframework.beans.testfixture.beans.ITestBean;
|
||||||
import org.springframework.beans.test.fixtures.beans.TestBean;
|
import org.springframework.beans.testfixture.beans.TestBean;
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
|
|
||||||
|
|
|
@ -21,8 +21,8 @@ import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
|
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
|
||||||
import org.springframework.beans.factory.xml.XmlBeanDefinitionReader;
|
import org.springframework.beans.factory.xml.XmlBeanDefinitionReader;
|
||||||
import org.springframework.beans.test.fixtures.beans.ITestBean;
|
import org.springframework.beans.testfixture.beans.ITestBean;
|
||||||
import org.springframework.beans.test.fixtures.beans.TestBean;
|
import org.springframework.beans.testfixture.beans.TestBean;
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
import static org.springframework.core.testfixture.io.ResourceTestUtils.qualifiedResource;
|
import static org.springframework.core.testfixture.io.ResourceTestUtils.qualifiedResource;
|
||||||
|
|
|
@ -21,7 +21,7 @@ import java.io.IOException;
|
||||||
import org.junit.jupiter.api.BeforeEach;
|
import org.junit.jupiter.api.BeforeEach;
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
import org.springframework.beans.test.fixtures.beans.TestBean;
|
import org.springframework.beans.testfixture.beans.TestBean;
|
||||||
import org.springframework.core.testfixture.io.SerializationTestUtils;
|
import org.springframework.core.testfixture.io.SerializationTestUtils;
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
|
|
|
@ -25,7 +25,7 @@ import org.springframework.aop.MethodMatcher;
|
||||||
import org.springframework.aop.Pointcut;
|
import org.springframework.aop.Pointcut;
|
||||||
import org.springframework.aop.interceptor.ExposeInvocationInterceptor;
|
import org.springframework.aop.interceptor.ExposeInvocationInterceptor;
|
||||||
import org.springframework.aop.target.EmptyTargetSource;
|
import org.springframework.aop.target.EmptyTargetSource;
|
||||||
import org.springframework.beans.test.fixtures.beans.TestBean;
|
import org.springframework.beans.testfixture.beans.TestBean;
|
||||||
import org.springframework.core.testfixture.io.SerializationTestUtils;
|
import org.springframework.core.testfixture.io.SerializationTestUtils;
|
||||||
import org.springframework.lang.Nullable;
|
import org.springframework.lang.Nullable;
|
||||||
import org.springframework.tests.aop.interceptor.NopInterceptor;
|
import org.springframework.tests.aop.interceptor.NopInterceptor;
|
||||||
|
|
|
@ -19,8 +19,8 @@ package org.springframework.aop.support;
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
import org.springframework.aop.ClassFilter;
|
import org.springframework.aop.ClassFilter;
|
||||||
import org.springframework.beans.test.fixtures.beans.ITestBean;
|
import org.springframework.beans.testfixture.beans.ITestBean;
|
||||||
import org.springframework.beans.test.fixtures.beans.TestBean;
|
import org.springframework.beans.testfixture.beans.TestBean;
|
||||||
import org.springframework.core.NestedRuntimeException;
|
import org.springframework.core.NestedRuntimeException;
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
|
|
|
@ -18,7 +18,7 @@ package org.springframework.aop.support;
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
import org.springframework.aop.framework.ProxyFactory;
|
import org.springframework.aop.framework.ProxyFactory;
|
||||||
import org.springframework.beans.test.fixtures.beans.TestBean;
|
import org.springframework.beans.testfixture.beans.TestBean;
|
||||||
import org.springframework.util.ClassUtils;
|
import org.springframework.util.ClassUtils;
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
|
|
|
@ -23,7 +23,7 @@ import org.junit.jupiter.api.Test;
|
||||||
import org.springframework.aop.ClassFilter;
|
import org.springframework.aop.ClassFilter;
|
||||||
import org.springframework.aop.MethodMatcher;
|
import org.springframework.aop.MethodMatcher;
|
||||||
import org.springframework.aop.Pointcut;
|
import org.springframework.aop.Pointcut;
|
||||||
import org.springframework.beans.test.fixtures.beans.TestBean;
|
import org.springframework.beans.testfixture.beans.TestBean;
|
||||||
import org.springframework.core.NestedRuntimeException;
|
import org.springframework.core.NestedRuntimeException;
|
||||||
import org.springframework.lang.Nullable;
|
import org.springframework.lang.Nullable;
|
||||||
|
|
||||||
|
|
|
@ -20,8 +20,8 @@ import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
import org.springframework.aop.Pointcut;
|
import org.springframework.aop.Pointcut;
|
||||||
import org.springframework.aop.framework.ProxyFactory;
|
import org.springframework.aop.framework.ProxyFactory;
|
||||||
import org.springframework.beans.test.fixtures.beans.ITestBean;
|
import org.springframework.beans.testfixture.beans.ITestBean;
|
||||||
import org.springframework.beans.test.fixtures.beans.TestBean;
|
import org.springframework.beans.testfixture.beans.TestBean;
|
||||||
import org.springframework.tests.aop.interceptor.NopInterceptor;
|
import org.springframework.tests.aop.interceptor.NopInterceptor;
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
|
|
|
@ -24,12 +24,12 @@ import org.junit.jupiter.api.Test;
|
||||||
import org.springframework.aop.IntroductionAdvisor;
|
import org.springframework.aop.IntroductionAdvisor;
|
||||||
import org.springframework.aop.IntroductionInterceptor;
|
import org.springframework.aop.IntroductionInterceptor;
|
||||||
import org.springframework.aop.framework.ProxyFactory;
|
import org.springframework.aop.framework.ProxyFactory;
|
||||||
import org.springframework.beans.test.fixtures.beans.INestedTestBean;
|
import org.springframework.beans.testfixture.beans.INestedTestBean;
|
||||||
import org.springframework.beans.test.fixtures.beans.ITestBean;
|
import org.springframework.beans.testfixture.beans.ITestBean;
|
||||||
import org.springframework.beans.test.fixtures.beans.NestedTestBean;
|
import org.springframework.beans.testfixture.beans.NestedTestBean;
|
||||||
import org.springframework.beans.test.fixtures.beans.Person;
|
import org.springframework.beans.testfixture.beans.Person;
|
||||||
import org.springframework.beans.test.fixtures.beans.SerializablePerson;
|
import org.springframework.beans.testfixture.beans.SerializablePerson;
|
||||||
import org.springframework.beans.test.fixtures.beans.TestBean;
|
import org.springframework.beans.testfixture.beans.TestBean;
|
||||||
import org.springframework.core.testfixture.TimeStamped;
|
import org.springframework.core.testfixture.TimeStamped;
|
||||||
import org.springframework.core.testfixture.io.SerializationTestUtils;
|
import org.springframework.core.testfixture.io.SerializationTestUtils;
|
||||||
import org.springframework.tests.aop.interceptor.SerializableNopInterceptor;
|
import org.springframework.tests.aop.interceptor.SerializableNopInterceptor;
|
||||||
|
|
|
@ -21,9 +21,9 @@ import java.lang.reflect.Method;
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
import org.springframework.aop.MethodMatcher;
|
import org.springframework.aop.MethodMatcher;
|
||||||
import org.springframework.beans.test.fixtures.beans.IOther;
|
import org.springframework.beans.testfixture.beans.IOther;
|
||||||
import org.springframework.beans.test.fixtures.beans.ITestBean;
|
import org.springframework.beans.testfixture.beans.ITestBean;
|
||||||
import org.springframework.beans.test.fixtures.beans.TestBean;
|
import org.springframework.beans.testfixture.beans.TestBean;
|
||||||
import org.springframework.core.testfixture.io.SerializationTestUtils;
|
import org.springframework.core.testfixture.io.SerializationTestUtils;
|
||||||
import org.springframework.lang.Nullable;
|
import org.springframework.lang.Nullable;
|
||||||
|
|
||||||
|
|
|
@ -21,8 +21,8 @@ import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
import org.springframework.aop.framework.Advised;
|
import org.springframework.aop.framework.Advised;
|
||||||
import org.springframework.aop.framework.ProxyFactory;
|
import org.springframework.aop.framework.ProxyFactory;
|
||||||
import org.springframework.beans.test.fixtures.beans.Person;
|
import org.springframework.beans.testfixture.beans.Person;
|
||||||
import org.springframework.beans.test.fixtures.beans.SerializablePerson;
|
import org.springframework.beans.testfixture.beans.SerializablePerson;
|
||||||
import org.springframework.core.testfixture.io.SerializationTestUtils;
|
import org.springframework.core.testfixture.io.SerializationTestUtils;
|
||||||
import org.springframework.tests.aop.interceptor.NopInterceptor;
|
import org.springframework.tests.aop.interceptor.NopInterceptor;
|
||||||
import org.springframework.tests.aop.interceptor.SerializableNopInterceptor;
|
import org.springframework.tests.aop.interceptor.SerializableNopInterceptor;
|
||||||
|
|
|
@ -22,7 +22,7 @@ import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
import org.springframework.aop.ClassFilter;
|
import org.springframework.aop.ClassFilter;
|
||||||
import org.springframework.aop.Pointcut;
|
import org.springframework.aop.Pointcut;
|
||||||
import org.springframework.beans.test.fixtures.beans.TestBean;
|
import org.springframework.beans.testfixture.beans.TestBean;
|
||||||
import org.springframework.lang.Nullable;
|
import org.springframework.lang.Nullable;
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
|
|
|
@ -21,9 +21,9 @@ import org.junit.jupiter.api.Test;
|
||||||
import org.springframework.aop.framework.Advised;
|
import org.springframework.aop.framework.Advised;
|
||||||
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
|
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
|
||||||
import org.springframework.beans.factory.xml.XmlBeanDefinitionReader;
|
import org.springframework.beans.factory.xml.XmlBeanDefinitionReader;
|
||||||
import org.springframework.beans.test.fixtures.beans.ITestBean;
|
import org.springframework.beans.testfixture.beans.ITestBean;
|
||||||
import org.springframework.beans.test.fixtures.beans.Person;
|
import org.springframework.beans.testfixture.beans.Person;
|
||||||
import org.springframework.beans.test.fixtures.beans.TestBean;
|
import org.springframework.beans.testfixture.beans.TestBean;
|
||||||
import org.springframework.core.io.Resource;
|
import org.springframework.core.io.Resource;
|
||||||
import org.springframework.core.testfixture.io.SerializationTestUtils;
|
import org.springframework.core.testfixture.io.SerializationTestUtils;
|
||||||
import org.springframework.tests.aop.interceptor.NopInterceptor;
|
import org.springframework.tests.aop.interceptor.NopInterceptor;
|
||||||
|
|
|
@ -19,7 +19,7 @@ package org.springframework.aop.support;
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
import org.springframework.aop.ClassFilter;
|
import org.springframework.aop.ClassFilter;
|
||||||
import org.springframework.beans.test.fixtures.beans.ITestBean;
|
import org.springframework.beans.testfixture.beans.ITestBean;
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@ import org.junit.jupiter.api.Test;
|
||||||
import org.springframework.aop.support.AopUtils;
|
import org.springframework.aop.support.AopUtils;
|
||||||
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
|
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
|
||||||
import org.springframework.beans.factory.xml.XmlBeanDefinitionReader;
|
import org.springframework.beans.factory.xml.XmlBeanDefinitionReader;
|
||||||
import org.springframework.beans.test.fixtures.beans.ITestBean;
|
import org.springframework.beans.testfixture.beans.ITestBean;
|
||||||
import org.springframework.core.io.Resource;
|
import org.springframework.core.io.Resource;
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
|
|
|
@ -25,9 +25,9 @@ import org.springframework.aop.framework.ProxyFactory;
|
||||||
import org.springframework.aop.support.DefaultPointcutAdvisor;
|
import org.springframework.aop.support.DefaultPointcutAdvisor;
|
||||||
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
|
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
|
||||||
import org.springframework.beans.factory.xml.XmlBeanDefinitionReader;
|
import org.springframework.beans.factory.xml.XmlBeanDefinitionReader;
|
||||||
import org.springframework.beans.test.fixtures.beans.Person;
|
import org.springframework.beans.testfixture.beans.Person;
|
||||||
import org.springframework.beans.test.fixtures.beans.SerializablePerson;
|
import org.springframework.beans.testfixture.beans.SerializablePerson;
|
||||||
import org.springframework.beans.test.fixtures.beans.SideEffectBean;
|
import org.springframework.beans.testfixture.beans.SideEffectBean;
|
||||||
import org.springframework.core.testfixture.io.SerializationTestUtils;
|
import org.springframework.core.testfixture.io.SerializationTestUtils;
|
||||||
import org.springframework.tests.aop.interceptor.SerializableNopInterceptor;
|
import org.springframework.tests.aop.interceptor.SerializableNopInterceptor;
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
|
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
|
||||||
import org.springframework.beans.factory.xml.XmlBeanDefinitionReader;
|
import org.springframework.beans.factory.xml.XmlBeanDefinitionReader;
|
||||||
import org.springframework.beans.test.fixtures.beans.ITestBean;
|
import org.springframework.beans.testfixture.beans.ITestBean;
|
||||||
import org.springframework.core.io.Resource;
|
import org.springframework.core.io.Resource;
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
|
|
|
@ -23,8 +23,8 @@ import org.springframework.beans.MutablePropertyValues;
|
||||||
import org.springframework.beans.factory.config.BeanDefinition;
|
import org.springframework.beans.factory.config.BeanDefinition;
|
||||||
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
|
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
|
||||||
import org.springframework.beans.factory.support.RootBeanDefinition;
|
import org.springframework.beans.factory.support.RootBeanDefinition;
|
||||||
import org.springframework.beans.test.fixtures.beans.SerializablePerson;
|
import org.springframework.beans.testfixture.beans.SerializablePerson;
|
||||||
import org.springframework.beans.test.fixtures.beans.TestBean;
|
import org.springframework.beans.testfixture.beans.TestBean;
|
||||||
import org.springframework.core.testfixture.io.SerializationTestUtils;
|
import org.springframework.core.testfixture.io.SerializationTestUtils;
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
|
|
|
@ -21,7 +21,7 @@ import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
|
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
|
||||||
import org.springframework.beans.factory.xml.XmlBeanDefinitionReader;
|
import org.springframework.beans.factory.xml.XmlBeanDefinitionReader;
|
||||||
import org.springframework.beans.test.fixtures.beans.SideEffectBean;
|
import org.springframework.beans.testfixture.beans.SideEffectBean;
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
import static org.springframework.core.testfixture.io.ResourceTestUtils.qualifiedResource;
|
import static org.springframework.core.testfixture.io.ResourceTestUtils.qualifiedResource;
|
||||||
|
|
|
@ -21,8 +21,8 @@ import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
|
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
|
||||||
import org.springframework.beans.factory.xml.XmlBeanDefinitionReader;
|
import org.springframework.beans.factory.xml.XmlBeanDefinitionReader;
|
||||||
import org.springframework.beans.test.fixtures.beans.ITestBean;
|
import org.springframework.beans.testfixture.beans.ITestBean;
|
||||||
import org.springframework.beans.test.fixtures.beans.SideEffectBean;
|
import org.springframework.beans.testfixture.beans.SideEffectBean;
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
import static org.springframework.core.testfixture.io.ResourceTestUtils.qualifiedResource;
|
import static org.springframework.core.testfixture.io.ResourceTestUtils.qualifiedResource;
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
|
|
||||||
<bean id="getAgeCounter" class="org.springframework.aop.framework.CountingBeforeAdvice"/>
|
<bean id="getAgeCounter" class="org.springframework.aop.framework.CountingBeforeAdvice"/>
|
||||||
|
|
||||||
<bean id="testBean" class="org.springframework.beans.test.fixtures.beans.TestBean"/>
|
<bean id="testBean" class="org.springframework.beans.testfixture.beans.TestBean"/>
|
||||||
|
|
||||||
<bean id="countingAdvice" class="org.springframework.aop.config.CountingAspectJAdvice"/>
|
<bean id="countingAdvice" class="org.springframework.aop.config.CountingAspectJAdvice"/>
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
|
|
||||||
<bean id="getAgeCounter" class="org.springframework.aop.framework.CountingBeforeAdvice"/>
|
<bean id="getAgeCounter" class="org.springframework.aop.framework.CountingBeforeAdvice"/>
|
||||||
|
|
||||||
<bean id="testBean" class="org.springframework.beans.test.fixtures.beans.TestBean"/>
|
<bean id="testBean" class="org.springframework.beans.testfixture.beans.TestBean"/>
|
||||||
|
|
||||||
<bean id="countingAdvice" class="org.springframework.aop.config.CountingAspectJAdvice"/>
|
<bean id="countingAdvice" class="org.springframework.aop.config.CountingAspectJAdvice"/>
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
|
|
||||||
<bean id="getAgeCounter" class="org.springframework.aop.framework.CountingBeforeAdvice"/>
|
<bean id="getAgeCounter" class="org.springframework.aop.framework.CountingBeforeAdvice"/>
|
||||||
|
|
||||||
<bean id="testBean" class="org.springframework.beans.test.fixtures.beans.TestBean"/>
|
<bean id="testBean" class="org.springframework.beans.testfixture.beans.TestBean"/>
|
||||||
|
|
||||||
<bean id="countingAdvice" class="org.springframework.aop.config.CountingAspectJAdvice"/>
|
<bean id="countingAdvice" class="org.springframework.aop.config.CountingAspectJAdvice"/>
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<beans>
|
<beans>
|
||||||
|
|
||||||
<!-- Simple target -->
|
<!-- Simple target -->
|
||||||
<bean id="test" class="org.springframework.beans.test.fixtures.beans.TestBean">
|
<bean id="test" class="org.springframework.beans.testfixture.beans.TestBean">
|
||||||
<property name="name"><value>custom</value></property>
|
<property name="name"><value>custom</value></property>
|
||||||
<property name="age"><value>666</value></property>
|
<property name="age"><value>666</value></property>
|
||||||
</bean>
|
</bean>
|
||||||
|
@ -21,15 +21,15 @@
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<bean id="settersAdvised" class="org.springframework.aop.framework.ProxyFactoryBean">
|
<bean id="settersAdvised" class="org.springframework.aop.framework.ProxyFactoryBean">
|
||||||
<property name="proxyInterfaces"><value>org.springframework.beans.test.fixtures.beans.ITestBean</value></property>
|
<property name="proxyInterfaces"><value>org.springframework.beans.testfixture.beans.ITestBean</value></property>
|
||||||
<property name="target"><ref bean="test"/></property>
|
<property name="target"><ref bean="test"/></property>
|
||||||
<property name="interceptorNames"><value>settersAdvisor</value></property>
|
<property name="interceptorNames"><value>settersAdvisor</value></property>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<bean id="serializableSettersAdvised" class="org.springframework.aop.framework.ProxyFactoryBean">
|
<bean id="serializableSettersAdvised" class="org.springframework.aop.framework.ProxyFactoryBean">
|
||||||
<property name="proxyInterfaces"><value>org.springframework.beans.test.fixtures.beans.Person</value></property>
|
<property name="proxyInterfaces"><value>org.springframework.beans.testfixture.beans.Person</value></property>
|
||||||
<property name="target">
|
<property name="target">
|
||||||
<bean class="org.springframework.beans.test.fixtures.beans.SerializablePerson">
|
<bean class="org.springframework.beans.testfixture.beans.SerializablePerson">
|
||||||
<property name="name"><value>serializableSettersAdvised</value></property>
|
<property name="name"><value>serializableSettersAdvised</value></property>
|
||||||
</bean>
|
</bean>
|
||||||
</property>
|
</property>
|
||||||
|
@ -48,7 +48,7 @@
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<bean id="settersAndAbsquatulateAdvised" class="org.springframework.aop.framework.ProxyFactoryBean">
|
<bean id="settersAndAbsquatulateAdvised" class="org.springframework.aop.framework.ProxyFactoryBean">
|
||||||
<property name="proxyInterfaces"><value>org.springframework.beans.test.fixtures.beans.ITestBean</value></property>
|
<property name="proxyInterfaces"><value>org.springframework.beans.testfixture.beans.ITestBean</value></property>
|
||||||
<!-- Force CGLIB so we can cast to TestBean -->
|
<!-- Force CGLIB so we can cast to TestBean -->
|
||||||
<property name="proxyTargetClass"><value>true</value></property>
|
<property name="proxyTargetClass"><value>true</value></property>
|
||||||
<property name="target"><ref bean="test"/></property>
|
<property name="target"><ref bean="test"/></property>
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
<beans>
|
<beans>
|
||||||
|
|
||||||
<bean id="testBeanTarget" class="org.springframework.beans.test.fixtures.beans.TestBean" scope="prototype"/>
|
<bean id="testBeanTarget" class="org.springframework.beans.testfixture.beans.TestBean" scope="prototype"/>
|
||||||
|
|
||||||
<bean id="targetSource" class="org.springframework.aop.target.CommonsPool2TargetSource">
|
<bean id="targetSource" class="org.springframework.aop.target.CommonsPool2TargetSource">
|
||||||
<property name="targetBeanName" value="testBeanTarget"/>
|
<property name="targetBeanName" value="testBeanTarget"/>
|
||||||
|
|
|
@ -4,11 +4,11 @@
|
||||||
<beans>
|
<beans>
|
||||||
|
|
||||||
<!-- Simple target -->
|
<!-- Simple target -->
|
||||||
<bean id="target1" class="org.springframework.beans.test.fixtures.beans.SideEffectBean">
|
<bean id="target1" class="org.springframework.beans.testfixture.beans.SideEffectBean">
|
||||||
<property name="count"><value>10</value></property>
|
<property name="count"><value>10</value></property>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<bean id="target2" class="org.springframework.beans.test.fixtures.beans.SideEffectBean" scope="singleton">
|
<bean id="target2" class="org.springframework.beans.testfixture.beans.SideEffectBean" scope="singleton">
|
||||||
<property name="count"><value>20</value></property>
|
<property name="count"><value>20</value></property>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
<beans>
|
<beans>
|
||||||
|
|
||||||
<bean id="target" class="org.springframework.beans.test.fixtures.beans.TestBean" lazy-init="true">
|
<bean id="target" class="org.springframework.beans.testfixture.beans.TestBean" lazy-init="true">
|
||||||
<property name="age"><value>10</value></property>
|
<property name="age"><value>10</value></property>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
<beans>
|
<beans>
|
||||||
|
|
||||||
<bean id="target" class="org.springframework.beans.test.fixtures.beans.TestBean" lazy-init="true">
|
<bean id="target" class="org.springframework.beans.testfixture.beans.TestBean" lazy-init="true">
|
||||||
<property name="age"><value>10</value></property>
|
<property name="age"><value>10</value></property>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
|
|
|
@ -4,11 +4,11 @@
|
||||||
<beans>
|
<beans>
|
||||||
|
|
||||||
<!-- Simple target -->
|
<!-- Simple target -->
|
||||||
<bean id="test" class="org.springframework.beans.test.fixtures.beans.SideEffectBean">
|
<bean id="test" class="org.springframework.beans.testfixture.beans.SideEffectBean">
|
||||||
<property name="count"><value>10</value></property>
|
<property name="count"><value>10</value></property>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<bean id="prototypeTest" class="org.springframework.beans.test.fixtures.beans.SideEffectBean" scope="prototype">
|
<bean id="prototypeTest" class="org.springframework.beans.testfixture.beans.SideEffectBean" scope="prototype">
|
||||||
<property name="count"><value>10</value></property>
|
<property name="count"><value>10</value></property>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
<beans>
|
<beans>
|
||||||
|
|
||||||
<bean id="prototypeTest" class="org.springframework.beans.test.fixtures.beans.SideEffectBean" scope="prototype">
|
<bean id="prototypeTest" class="org.springframework.beans.testfixture.beans.SideEffectBean" scope="prototype">
|
||||||
<property name="count"><value>10</value></property>
|
<property name="count"><value>10</value></property>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
|
@ -34,12 +34,12 @@
|
||||||
|
|
||||||
<!-- ================ Definitions for second ThreadLocalTargetSource ====== -->
|
<!-- ================ Definitions for second ThreadLocalTargetSource ====== -->
|
||||||
|
|
||||||
<bean id="test" class="org.springframework.beans.test.fixtures.beans.TestBean" scope="prototype">
|
<bean id="test" class="org.springframework.beans.testfixture.beans.TestBean" scope="prototype">
|
||||||
<property name="name"><value>Rod</value></property>
|
<property name="name"><value>Rod</value></property>
|
||||||
<property name="spouse"><ref bean="wife"/></property>
|
<property name="spouse"><ref bean="wife"/></property>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<bean id="wife" class="org.springframework.beans.test.fixtures.beans.TestBean">
|
<bean id="wife" class="org.springframework.beans.testfixture.beans.TestBean">
|
||||||
<property name="name"><value>Kerry</value></property>
|
<property name="name"><value>Kerry</value></property>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
|
|
|
@ -43,11 +43,11 @@ import org.springframework.beans.propertyeditors.CustomNumberEditor;
|
||||||
import org.springframework.beans.propertyeditors.StringArrayPropertyEditor;
|
import org.springframework.beans.propertyeditors.StringArrayPropertyEditor;
|
||||||
import org.springframework.beans.propertyeditors.StringTrimmerEditor;
|
import org.springframework.beans.propertyeditors.StringTrimmerEditor;
|
||||||
import org.springframework.beans.support.DerivedFromProtectedBaseBean;
|
import org.springframework.beans.support.DerivedFromProtectedBaseBean;
|
||||||
import org.springframework.beans.test.fixtures.beans.BooleanTestBean;
|
import org.springframework.beans.testfixture.beans.BooleanTestBean;
|
||||||
import org.springframework.beans.test.fixtures.beans.ITestBean;
|
import org.springframework.beans.testfixture.beans.ITestBean;
|
||||||
import org.springframework.beans.test.fixtures.beans.IndexedTestBean;
|
import org.springframework.beans.testfixture.beans.IndexedTestBean;
|
||||||
import org.springframework.beans.test.fixtures.beans.NumberTestBean;
|
import org.springframework.beans.testfixture.beans.NumberTestBean;
|
||||||
import org.springframework.beans.test.fixtures.beans.TestBean;
|
import org.springframework.beans.testfixture.beans.TestBean;
|
||||||
import org.springframework.core.convert.ConversionFailedException;
|
import org.springframework.core.convert.ConversionFailedException;
|
||||||
import org.springframework.core.convert.TypeDescriptor;
|
import org.springframework.core.convert.TypeDescriptor;
|
||||||
import org.springframework.core.convert.support.DefaultConversionService;
|
import org.springframework.core.convert.support.DefaultConversionService;
|
||||||
|
|
|
@ -34,9 +34,9 @@ import org.junit.jupiter.params.provider.ValueSource;
|
||||||
|
|
||||||
import org.springframework.beans.factory.BeanFactory;
|
import org.springframework.beans.factory.BeanFactory;
|
||||||
import org.springframework.beans.propertyeditors.CustomDateEditor;
|
import org.springframework.beans.propertyeditors.CustomDateEditor;
|
||||||
import org.springframework.beans.test.fixtures.beans.DerivedTestBean;
|
import org.springframework.beans.testfixture.beans.DerivedTestBean;
|
||||||
import org.springframework.beans.test.fixtures.beans.ITestBean;
|
import org.springframework.beans.testfixture.beans.ITestBean;
|
||||||
import org.springframework.beans.test.fixtures.beans.TestBean;
|
import org.springframework.beans.testfixture.beans.TestBean;
|
||||||
import org.springframework.core.io.Resource;
|
import org.springframework.core.io.Resource;
|
||||||
import org.springframework.core.io.ResourceEditor;
|
import org.springframework.core.io.ResourceEditor;
|
||||||
import org.springframework.lang.Nullable;
|
import org.springframework.lang.Nullable;
|
||||||
|
|
|
@ -21,8 +21,8 @@ import java.util.Map;
|
||||||
|
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
import org.springframework.beans.test.fixtures.beans.CustomEnum;
|
import org.springframework.beans.testfixture.beans.CustomEnum;
|
||||||
import org.springframework.beans.test.fixtures.beans.GenericBean;
|
import org.springframework.beans.testfixture.beans.GenericBean;
|
||||||
import org.springframework.core.convert.support.DefaultConversionService;
|
import org.springframework.core.convert.support.DefaultConversionService;
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
|
|
|
@ -33,10 +33,10 @@ import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
import org.springframework.beans.propertyeditors.CustomNumberEditor;
|
import org.springframework.beans.propertyeditors.CustomNumberEditor;
|
||||||
import org.springframework.beans.propertyeditors.StringTrimmerEditor;
|
import org.springframework.beans.propertyeditors.StringTrimmerEditor;
|
||||||
import org.springframework.beans.test.fixtures.beans.GenericBean;
|
import org.springframework.beans.testfixture.beans.GenericBean;
|
||||||
import org.springframework.beans.test.fixtures.beans.GenericIntegerBean;
|
import org.springframework.beans.testfixture.beans.GenericIntegerBean;
|
||||||
import org.springframework.beans.test.fixtures.beans.GenericSetOfIntegerBean;
|
import org.springframework.beans.testfixture.beans.GenericSetOfIntegerBean;
|
||||||
import org.springframework.beans.test.fixtures.beans.TestBean;
|
import org.springframework.beans.testfixture.beans.TestBean;
|
||||||
import org.springframework.core.io.UrlResource;
|
import org.springframework.core.io.UrlResource;
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
|
|
|
@ -22,7 +22,7 @@ import java.util.Optional;
|
||||||
|
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
import org.springframework.beans.test.fixtures.beans.TestBean;
|
import org.springframework.beans.testfixture.beans.TestBean;
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
|
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
|
||||||
|
|
|
@ -22,7 +22,7 @@ import java.util.ArrayList;
|
||||||
|
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
import org.springframework.beans.test.fixtures.beans.TestBean;
|
import org.springframework.beans.testfixture.beans.TestBean;
|
||||||
import org.springframework.core.OverridingClassLoader;
|
import org.springframework.core.OverridingClassLoader;
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
|
@ -42,7 +42,7 @@ public class CachedIntrospectionResultsTests {
|
||||||
assertThat(CachedIntrospectionResults.strongClassCache.containsKey(TestBean.class)).isTrue();
|
assertThat(CachedIntrospectionResults.strongClassCache.containsKey(TestBean.class)).isTrue();
|
||||||
|
|
||||||
ClassLoader child = new OverridingClassLoader(getClass().getClassLoader());
|
ClassLoader child = new OverridingClassLoader(getClass().getClassLoader());
|
||||||
Class<?> tbClass = child.loadClass("org.springframework.beans.test.fixtures.beans.TestBean");
|
Class<?> tbClass = child.loadClass("org.springframework.beans.testfixture.beans.TestBean");
|
||||||
assertThat(CachedIntrospectionResults.strongClassCache.containsKey(tbClass)).isFalse();
|
assertThat(CachedIntrospectionResults.strongClassCache.containsKey(tbClass)).isFalse();
|
||||||
CachedIntrospectionResults.acceptClassLoader(child);
|
CachedIntrospectionResults.acceptClassLoader(child);
|
||||||
bw = new BeanWrapperImpl(tbClass);
|
bw = new BeanWrapperImpl(tbClass);
|
||||||
|
|
|
@ -18,7 +18,7 @@ package org.springframework.beans;
|
||||||
|
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
import org.springframework.beans.test.fixtures.beans.TestBean;
|
import org.springframework.beans.testfixture.beans.TestBean;
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@ import java.math.BigDecimal;
|
||||||
|
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
import org.springframework.beans.test.fixtures.beans.TestBean;
|
import org.springframework.beans.testfixture.beans.TestBean;
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
|
|
||||||
|
|
|
@ -26,12 +26,12 @@ import org.junit.jupiter.api.Test;
|
||||||
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
|
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
|
||||||
import org.springframework.beans.factory.support.StaticListableBeanFactory;
|
import org.springframework.beans.factory.support.StaticListableBeanFactory;
|
||||||
import org.springframework.beans.factory.xml.XmlBeanDefinitionReader;
|
import org.springframework.beans.factory.xml.XmlBeanDefinitionReader;
|
||||||
import org.springframework.beans.test.fixtures.beans.AnnotatedBean;
|
import org.springframework.beans.testfixture.beans.AnnotatedBean;
|
||||||
import org.springframework.beans.test.fixtures.beans.ITestBean;
|
import org.springframework.beans.testfixture.beans.ITestBean;
|
||||||
import org.springframework.beans.test.fixtures.beans.IndexedTestBean;
|
import org.springframework.beans.testfixture.beans.IndexedTestBean;
|
||||||
import org.springframework.beans.test.fixtures.beans.TestAnnotation;
|
import org.springframework.beans.testfixture.beans.TestAnnotation;
|
||||||
import org.springframework.beans.test.fixtures.beans.TestBean;
|
import org.springframework.beans.testfixture.beans.TestBean;
|
||||||
import org.springframework.beans.test.fixtures.beans.factory.DummyFactory;
|
import org.springframework.beans.testfixture.beans.factory.DummyFactory;
|
||||||
import org.springframework.cglib.proxy.NoOp;
|
import org.springframework.cglib.proxy.NoOp;
|
||||||
import org.springframework.core.io.Resource;
|
import org.springframework.core.io.Resource;
|
||||||
import org.springframework.util.ObjectUtils;
|
import org.springframework.util.ObjectUtils;
|
||||||
|
|
|
@ -78,14 +78,14 @@ import org.springframework.beans.factory.support.PropertiesBeanDefinitionReader;
|
||||||
import org.springframework.beans.factory.support.RootBeanDefinition;
|
import org.springframework.beans.factory.support.RootBeanDefinition;
|
||||||
import org.springframework.beans.factory.xml.ConstructorDependenciesBean;
|
import org.springframework.beans.factory.xml.ConstructorDependenciesBean;
|
||||||
import org.springframework.beans.propertyeditors.CustomNumberEditor;
|
import org.springframework.beans.propertyeditors.CustomNumberEditor;
|
||||||
import org.springframework.beans.test.fixtures.beans.DependenciesBean;
|
import org.springframework.beans.testfixture.beans.DependenciesBean;
|
||||||
import org.springframework.beans.test.fixtures.beans.DerivedTestBean;
|
import org.springframework.beans.testfixture.beans.DerivedTestBean;
|
||||||
import org.springframework.beans.test.fixtures.beans.ITestBean;
|
import org.springframework.beans.testfixture.beans.ITestBean;
|
||||||
import org.springframework.beans.test.fixtures.beans.LifecycleBean;
|
import org.springframework.beans.testfixture.beans.LifecycleBean;
|
||||||
import org.springframework.beans.test.fixtures.beans.NestedTestBean;
|
import org.springframework.beans.testfixture.beans.NestedTestBean;
|
||||||
import org.springframework.beans.test.fixtures.beans.SideEffectBean;
|
import org.springframework.beans.testfixture.beans.SideEffectBean;
|
||||||
import org.springframework.beans.test.fixtures.beans.TestBean;
|
import org.springframework.beans.testfixture.beans.TestBean;
|
||||||
import org.springframework.beans.test.fixtures.beans.factory.DummyFactory;
|
import org.springframework.beans.testfixture.beans.factory.DummyFactory;
|
||||||
import org.springframework.core.MethodParameter;
|
import org.springframework.core.MethodParameter;
|
||||||
import org.springframework.core.ResolvableType;
|
import org.springframework.core.ResolvableType;
|
||||||
import org.springframework.core.annotation.AnnotationAwareOrderComparator;
|
import org.springframework.core.annotation.AnnotationAwareOrderComparator;
|
||||||
|
|
|
@ -64,10 +64,10 @@ import org.springframework.beans.factory.support.AutowireCandidateQualifier;
|
||||||
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
|
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
|
||||||
import org.springframework.beans.factory.support.GenericBeanDefinition;
|
import org.springframework.beans.factory.support.GenericBeanDefinition;
|
||||||
import org.springframework.beans.factory.support.RootBeanDefinition;
|
import org.springframework.beans.factory.support.RootBeanDefinition;
|
||||||
import org.springframework.beans.test.fixtures.beans.ITestBean;
|
import org.springframework.beans.testfixture.beans.ITestBean;
|
||||||
import org.springframework.beans.test.fixtures.beans.IndexedTestBean;
|
import org.springframework.beans.testfixture.beans.IndexedTestBean;
|
||||||
import org.springframework.beans.test.fixtures.beans.NestedTestBean;
|
import org.springframework.beans.testfixture.beans.NestedTestBean;
|
||||||
import org.springframework.beans.test.fixtures.beans.TestBean;
|
import org.springframework.beans.testfixture.beans.TestBean;
|
||||||
import org.springframework.core.Ordered;
|
import org.springframework.core.Ordered;
|
||||||
import org.springframework.core.ResolvableType;
|
import org.springframework.core.ResolvableType;
|
||||||
import org.springframework.core.annotation.AnnotationAwareOrderComparator;
|
import org.springframework.core.annotation.AnnotationAwareOrderComparator;
|
||||||
|
|
|
@ -40,10 +40,10 @@ import org.springframework.beans.factory.support.AutowireCandidateQualifier;
|
||||||
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
|
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
|
||||||
import org.springframework.beans.factory.support.GenericBeanDefinition;
|
import org.springframework.beans.factory.support.GenericBeanDefinition;
|
||||||
import org.springframework.beans.factory.support.RootBeanDefinition;
|
import org.springframework.beans.factory.support.RootBeanDefinition;
|
||||||
import org.springframework.beans.test.fixtures.beans.ITestBean;
|
import org.springframework.beans.testfixture.beans.ITestBean;
|
||||||
import org.springframework.beans.test.fixtures.beans.IndexedTestBean;
|
import org.springframework.beans.testfixture.beans.IndexedTestBean;
|
||||||
import org.springframework.beans.test.fixtures.beans.NestedTestBean;
|
import org.springframework.beans.testfixture.beans.NestedTestBean;
|
||||||
import org.springframework.beans.test.fixtures.beans.TestBean;
|
import org.springframework.beans.testfixture.beans.TestBean;
|
||||||
import org.springframework.core.testfixture.io.SerializationTestUtils;
|
import org.springframework.core.testfixture.io.SerializationTestUtils;
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
|
|
|
@ -22,7 +22,7 @@ import org.junit.jupiter.api.Test;
|
||||||
import org.springframework.beans.factory.config.BeanDefinition;
|
import org.springframework.beans.factory.config.BeanDefinition;
|
||||||
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
|
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
|
||||||
import org.springframework.beans.factory.support.RootBeanDefinition;
|
import org.springframework.beans.factory.support.RootBeanDefinition;
|
||||||
import org.springframework.beans.test.fixtures.beans.TestBean;
|
import org.springframework.beans.testfixture.beans.TestBean;
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
|
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
|
||||||
|
|
|
@ -33,7 +33,7 @@ import org.springframework.beans.PropertyEditorRegistry;
|
||||||
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
|
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
|
||||||
import org.springframework.beans.factory.support.RootBeanDefinition;
|
import org.springframework.beans.factory.support.RootBeanDefinition;
|
||||||
import org.springframework.beans.propertyeditors.CustomDateEditor;
|
import org.springframework.beans.propertyeditors.CustomDateEditor;
|
||||||
import org.springframework.beans.test.fixtures.beans.TestBean;
|
import org.springframework.beans.testfixture.beans.TestBean;
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
|
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
|
||||||
import org.springframework.beans.factory.xml.XmlBeanDefinitionReader;
|
import org.springframework.beans.factory.xml.XmlBeanDefinitionReader;
|
||||||
import org.springframework.beans.test.fixtures.beans.TestBean;
|
import org.springframework.beans.testfixture.beans.TestBean;
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
import static org.springframework.core.testfixture.io.ResourceTestUtils.qualifiedResource;
|
import static org.springframework.core.testfixture.io.ResourceTestUtils.qualifiedResource;
|
||||||
|
@ -115,7 +115,7 @@ public class FieldRetrievingFactoryBeanTests {
|
||||||
@Test
|
@Test
|
||||||
public void testWithConstantOnClassWithPackageLevelVisibility() throws Exception {
|
public void testWithConstantOnClassWithPackageLevelVisibility() throws Exception {
|
||||||
FieldRetrievingFactoryBean fr = new FieldRetrievingFactoryBean();
|
FieldRetrievingFactoryBean fr = new FieldRetrievingFactoryBean();
|
||||||
fr.setBeanName("org.springframework.beans.test.fixtures.beans.PackageLevelVisibleBean.CONSTANT");
|
fr.setBeanName("org.springframework.beans.testfixture.beans.PackageLevelVisibleBean.CONSTANT");
|
||||||
fr.afterPropertiesSet();
|
fr.afterPropertiesSet();
|
||||||
assertThat(fr.getObject()).isEqualTo("Wuby");
|
assertThat(fr.getObject()).isEqualTo("Wuby");
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,8 +20,8 @@ import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
|
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
|
||||||
import org.springframework.beans.factory.xml.XmlBeanDefinitionReader;
|
import org.springframework.beans.factory.xml.XmlBeanDefinitionReader;
|
||||||
import org.springframework.beans.test.fixtures.beans.ITestBean;
|
import org.springframework.beans.testfixture.beans.ITestBean;
|
||||||
import org.springframework.beans.test.fixtures.beans.TestBean;
|
import org.springframework.beans.testfixture.beans.TestBean;
|
||||||
import org.springframework.core.io.Resource;
|
import org.springframework.core.io.Resource;
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
|
|
|
@ -24,7 +24,7 @@ import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
import org.springframework.beans.factory.support.AbstractBeanDefinition;
|
import org.springframework.beans.factory.support.AbstractBeanDefinition;
|
||||||
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
|
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
|
||||||
import org.springframework.beans.test.fixtures.beans.TestBean;
|
import org.springframework.beans.testfixture.beans.TestBean;
|
||||||
import org.springframework.core.io.ClassPathResource;
|
import org.springframework.core.io.ClassPathResource;
|
||||||
import org.springframework.core.io.Resource;
|
import org.springframework.core.io.Resource;
|
||||||
|
|
||||||
|
|
|
@ -39,8 +39,8 @@ import org.springframework.beans.factory.support.ManagedList;
|
||||||
import org.springframework.beans.factory.support.ManagedMap;
|
import org.springframework.beans.factory.support.ManagedMap;
|
||||||
import org.springframework.beans.factory.support.ManagedSet;
|
import org.springframework.beans.factory.support.ManagedSet;
|
||||||
import org.springframework.beans.factory.support.RootBeanDefinition;
|
import org.springframework.beans.factory.support.RootBeanDefinition;
|
||||||
import org.springframework.beans.test.fixtures.beans.IndexedTestBean;
|
import org.springframework.beans.testfixture.beans.IndexedTestBean;
|
||||||
import org.springframework.beans.test.fixtures.beans.TestBean;
|
import org.springframework.beans.testfixture.beans.TestBean;
|
||||||
import org.springframework.core.io.Resource;
|
import org.springframework.core.io.Resource;
|
||||||
import org.springframework.util.StringUtils;
|
import org.springframework.util.StringUtils;
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@ import org.junit.jupiter.api.Test;
|
||||||
import org.springframework.beans.factory.ObjectFactory;
|
import org.springframework.beans.factory.ObjectFactory;
|
||||||
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
|
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
|
||||||
import org.springframework.beans.factory.xml.XmlBeanDefinitionReader;
|
import org.springframework.beans.factory.xml.XmlBeanDefinitionReader;
|
||||||
import org.springframework.beans.test.fixtures.beans.TestBean;
|
import org.springframework.beans.testfixture.beans.TestBean;
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
import static org.springframework.core.testfixture.io.ResourceTestUtils.qualifiedResource;
|
import static org.springframework.core.testfixture.io.ResourceTestUtils.qualifiedResource;
|
||||||
|
|
|
@ -24,7 +24,7 @@ import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
|
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
|
||||||
import org.springframework.beans.factory.xml.XmlBeanDefinitionReader;
|
import org.springframework.beans.factory.xml.XmlBeanDefinitionReader;
|
||||||
import org.springframework.beans.test.fixtures.beans.TestBean;
|
import org.springframework.beans.testfixture.beans.TestBean;
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
import static org.springframework.core.testfixture.io.ResourceTestUtils.qualifiedResource;
|
import static org.springframework.core.testfixture.io.ResourceTestUtils.qualifiedResource;
|
||||||
|
|
|
@ -21,7 +21,7 @@ import java.util.Arrays;
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
import org.springframework.beans.factory.config.BeanDefinition;
|
import org.springframework.beans.factory.config.BeanDefinition;
|
||||||
import org.springframework.beans.test.fixtures.beans.TestBean;
|
import org.springframework.beans.testfixture.beans.TestBean;
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@ package org.springframework.beans.factory.support;
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
import org.springframework.beans.factory.config.BeanDefinitionHolder;
|
import org.springframework.beans.factory.config.BeanDefinitionHolder;
|
||||||
import org.springframework.beans.test.fixtures.beans.TestBean;
|
import org.springframework.beans.testfixture.beans.TestBean;
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
|
|
||||||
|
|
|
@ -43,10 +43,10 @@ import org.springframework.beans.factory.ObjectProvider;
|
||||||
import org.springframework.beans.factory.config.TypedStringValue;
|
import org.springframework.beans.factory.config.TypedStringValue;
|
||||||
import org.springframework.beans.factory.xml.XmlBeanDefinitionReader;
|
import org.springframework.beans.factory.xml.XmlBeanDefinitionReader;
|
||||||
import org.springframework.beans.propertyeditors.CustomNumberEditor;
|
import org.springframework.beans.propertyeditors.CustomNumberEditor;
|
||||||
import org.springframework.beans.test.fixtures.beans.GenericBean;
|
import org.springframework.beans.testfixture.beans.GenericBean;
|
||||||
import org.springframework.beans.test.fixtures.beans.GenericIntegerBean;
|
import org.springframework.beans.testfixture.beans.GenericIntegerBean;
|
||||||
import org.springframework.beans.test.fixtures.beans.GenericSetOfIntegerBean;
|
import org.springframework.beans.testfixture.beans.GenericSetOfIntegerBean;
|
||||||
import org.springframework.beans.test.fixtures.beans.TestBean;
|
import org.springframework.beans.testfixture.beans.TestBean;
|
||||||
import org.springframework.core.OverridingClassLoader;
|
import org.springframework.core.OverridingClassLoader;
|
||||||
import org.springframework.core.ResolvableType;
|
import org.springframework.core.ResolvableType;
|
||||||
import org.springframework.core.annotation.AnnotationAwareOrderComparator;
|
import org.springframework.core.annotation.AnnotationAwareOrderComparator;
|
||||||
|
|
|
@ -20,8 +20,8 @@ import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
import org.springframework.beans.BeansException;
|
import org.springframework.beans.BeansException;
|
||||||
import org.springframework.beans.factory.ObjectFactory;
|
import org.springframework.beans.factory.ObjectFactory;
|
||||||
import org.springframework.beans.test.fixtures.beans.DerivedTestBean;
|
import org.springframework.beans.testfixture.beans.DerivedTestBean;
|
||||||
import org.springframework.beans.test.fixtures.beans.TestBean;
|
import org.springframework.beans.testfixture.beans.TestBean;
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@ import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
import org.springframework.beans.factory.config.BeanDefinition;
|
import org.springframework.beans.factory.config.BeanDefinition;
|
||||||
import org.springframework.beans.factory.config.RuntimeBeanReference;
|
import org.springframework.beans.factory.config.RuntimeBeanReference;
|
||||||
import org.springframework.beans.test.fixtures.beans.TestBean;
|
import org.springframework.beans.testfixture.beans.TestBean;
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@ import org.junit.jupiter.api.BeforeEach;
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
import org.springframework.beans.factory.xml.XmlBeanDefinitionReader;
|
import org.springframework.beans.factory.xml.XmlBeanDefinitionReader;
|
||||||
import org.springframework.beans.test.fixtures.beans.TestBean;
|
import org.springframework.beans.testfixture.beans.TestBean;
|
||||||
import org.springframework.core.io.ClassPathResource;
|
import org.springframework.core.io.ClassPathResource;
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
|
|
|
@ -18,7 +18,7 @@ package org.springframework.beans.factory.support;
|
||||||
|
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
import org.springframework.beans.test.fixtures.beans.TestBean;
|
import org.springframework.beans.testfixture.beans.TestBean;
|
||||||
import org.springframework.core.io.ClassPathResource;
|
import org.springframework.core.io.ClassPathResource;
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
|
|
|
@ -21,7 +21,7 @@ import org.junit.jupiter.api.Test;
|
||||||
import org.springframework.beans.factory.BeanFactory;
|
import org.springframework.beans.factory.BeanFactory;
|
||||||
import org.springframework.beans.factory.support.BeanDefinitionBuilder;
|
import org.springframework.beans.factory.support.BeanDefinitionBuilder;
|
||||||
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
|
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
|
||||||
import org.springframework.beans.test.fixtures.beans.TestBean;
|
import org.springframework.beans.testfixture.beans.TestBean;
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException;
|
import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException;
|
||||||
|
|
|
@ -22,7 +22,7 @@ import org.springframework.beans.factory.config.PropertiesFactoryBean;
|
||||||
import org.springframework.beans.factory.config.RuntimeBeanReference;
|
import org.springframework.beans.factory.config.RuntimeBeanReference;
|
||||||
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
|
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
|
||||||
import org.springframework.beans.factory.support.RootBeanDefinition;
|
import org.springframework.beans.factory.support.RootBeanDefinition;
|
||||||
import org.springframework.beans.test.fixtures.beans.TestBean;
|
import org.springframework.beans.testfixture.beans.TestBean;
|
||||||
import org.springframework.core.io.ClassPathResource;
|
import org.springframework.core.io.ClassPathResource;
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
|
|
|
@ -27,7 +27,7 @@ import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
import org.springframework.beans.factory.support.BeanDefinitionReader;
|
import org.springframework.beans.factory.support.BeanDefinitionReader;
|
||||||
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
|
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
|
||||||
import org.springframework.beans.test.fixtures.beans.TestBean;
|
import org.springframework.beans.testfixture.beans.TestBean;
|
||||||
import org.springframework.core.io.ClassPathResource;
|
import org.springframework.core.io.ClassPathResource;
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
|
|
|
@ -22,7 +22,7 @@ import java.util.Map;
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
|
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
|
||||||
import org.springframework.beans.test.fixtures.beans.TestBean;
|
import org.springframework.beans.testfixture.beans.TestBean;
|
||||||
import org.springframework.core.io.ClassPathResource;
|
import org.springframework.core.io.ClassPathResource;
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
|
|
|
@ -18,8 +18,8 @@ package org.springframework.beans.factory.xml;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
import org.springframework.beans.test.fixtures.beans.IndexedTestBean;
|
import org.springframework.beans.testfixture.beans.IndexedTestBean;
|
||||||
import org.springframework.beans.test.fixtures.beans.TestBean;
|
import org.springframework.beans.testfixture.beans.TestBean;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Simple bean used to check constructor dependency checking.
|
* Simple bean used to check constructor dependency checking.
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
package org.springframework.beans.factory.xml;
|
package org.springframework.beans.factory.xml;
|
||||||
|
|
||||||
import org.springframework.beans.factory.FactoryBean;
|
import org.springframework.beans.factory.FactoryBean;
|
||||||
import org.springframework.beans.test.fixtures.beans.TestBean;
|
import org.springframework.beans.testfixture.beans.TestBean;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Juergen Hoeller
|
* @author Juergen Hoeller
|
||||||
|
|
|
@ -17,8 +17,8 @@
|
||||||
package org.springframework.beans.factory.xml;
|
package org.springframework.beans.factory.xml;
|
||||||
|
|
||||||
|
|
||||||
import org.springframework.beans.test.fixtures.beans.TestBean;
|
import org.springframework.beans.testfixture.beans.TestBean;
|
||||||
import org.springframework.beans.test.fixtures.beans.factory.DummyFactory;
|
import org.springframework.beans.testfixture.beans.factory.DummyFactory;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Juergen Hoeller
|
* @author Juergen Hoeller
|
||||||
|
|
|
@ -19,7 +19,7 @@ package org.springframework.beans.factory.xml;
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
|
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
|
||||||
import org.springframework.beans.test.fixtures.beans.TestBean;
|
import org.springframework.beans.testfixture.beans.TestBean;
|
||||||
import org.springframework.core.io.ClassPathResource;
|
import org.springframework.core.io.ClassPathResource;
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
|
|
|
@ -30,7 +30,7 @@ import org.springframework.beans.factory.parsing.ComponentDefinition;
|
||||||
import org.springframework.beans.factory.parsing.ImportDefinition;
|
import org.springframework.beans.factory.parsing.ImportDefinition;
|
||||||
import org.springframework.beans.factory.parsing.PassThroughSourceExtractor;
|
import org.springframework.beans.factory.parsing.PassThroughSourceExtractor;
|
||||||
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
|
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
|
||||||
import org.springframework.beans.test.fixtures.beans.CollectingReaderEventListener;
|
import org.springframework.beans.testfixture.beans.CollectingReaderEventListener;
|
||||||
import org.springframework.core.io.ClassPathResource;
|
import org.springframework.core.io.ClassPathResource;
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
|
|
|
@ -25,7 +25,7 @@ import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
import org.springframework.beans.factory.BeanCreationException;
|
import org.springframework.beans.factory.BeanCreationException;
|
||||||
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
|
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
|
||||||
import org.springframework.beans.test.fixtures.beans.TestBean;
|
import org.springframework.beans.testfixture.beans.TestBean;
|
||||||
import org.springframework.core.io.ClassPathResource;
|
import org.springframework.core.io.ClassPathResource;
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
|
|
|
@ -19,7 +19,7 @@ package org.springframework.beans.factory.xml;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.springframework.beans.test.fixtures.beans.TestBean;
|
import org.springframework.beans.testfixture.beans.TestBean;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for Spring's ability to create objects using static
|
* Test class for Spring's ability to create objects using static
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
|
|
||||||
package org.springframework.beans.factory.xml;
|
package org.springframework.beans.factory.xml;
|
||||||
|
|
||||||
import org.springframework.beans.test.fixtures.beans.TestBean;
|
import org.springframework.beans.testfixture.beans.TestBean;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for Spring's ability to create objects using
|
* Test class for Spring's ability to create objects using
|
||||||
|
|
|
@ -20,7 +20,7 @@ import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
import org.springframework.beans.factory.config.BeanDefinition;
|
import org.springframework.beans.factory.config.BeanDefinition;
|
||||||
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
|
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
|
||||||
import org.springframework.beans.test.fixtures.beans.TestBean;
|
import org.springframework.beans.testfixture.beans.TestBean;
|
||||||
import org.springframework.core.io.ClassPathResource;
|
import org.springframework.core.io.ClassPathResource;
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
|
|
|
@ -21,7 +21,7 @@ import org.xml.sax.SAXParseException;
|
||||||
|
|
||||||
import org.springframework.beans.BeansException;
|
import org.springframework.beans.BeansException;
|
||||||
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
|
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
|
||||||
import org.springframework.beans.test.fixtures.beans.TestBean;
|
import org.springframework.beans.testfixture.beans.TestBean;
|
||||||
import org.springframework.core.io.ClassPathResource;
|
import org.springframework.core.io.ClassPathResource;
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
|
|
|
@ -20,8 +20,8 @@ import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
import org.springframework.beans.factory.BeanDefinitionStoreException;
|
import org.springframework.beans.factory.BeanDefinitionStoreException;
|
||||||
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
|
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
|
||||||
import org.springframework.beans.test.fixtures.beans.DummyBean;
|
import org.springframework.beans.testfixture.beans.DummyBean;
|
||||||
import org.springframework.beans.test.fixtures.beans.TestBean;
|
import org.springframework.beans.testfixture.beans.TestBean;
|
||||||
import org.springframework.core.io.ClassPathResource;
|
import org.springframework.core.io.ClassPathResource;
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
|
|
|
@ -20,8 +20,8 @@ import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
import org.springframework.beans.factory.BeanDefinitionStoreException;
|
import org.springframework.beans.factory.BeanDefinitionStoreException;
|
||||||
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
|
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
|
||||||
import org.springframework.beans.test.fixtures.beans.ITestBean;
|
import org.springframework.beans.testfixture.beans.ITestBean;
|
||||||
import org.springframework.beans.test.fixtures.beans.TestBean;
|
import org.springframework.beans.testfixture.beans.TestBean;
|
||||||
import org.springframework.core.io.ClassPathResource;
|
import org.springframework.core.io.ClassPathResource;
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
|
|
||||||
package org.springframework.beans.factory.xml;
|
package org.springframework.beans.factory.xml;
|
||||||
|
|
||||||
import org.springframework.beans.test.fixtures.beans.TestBean;
|
import org.springframework.beans.testfixture.beans.TestBean;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for Spring's ability to create
|
* Test class for Spring's ability to create
|
||||||
|
|
|
@ -32,9 +32,9 @@ import org.springframework.beans.factory.config.PropertiesFactoryBean;
|
||||||
import org.springframework.beans.factory.parsing.ComponentDefinition;
|
import org.springframework.beans.factory.parsing.ComponentDefinition;
|
||||||
import org.springframework.beans.factory.support.AbstractBeanDefinition;
|
import org.springframework.beans.factory.support.AbstractBeanDefinition;
|
||||||
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
|
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
|
||||||
import org.springframework.beans.test.fixtures.beans.CollectingReaderEventListener;
|
import org.springframework.beans.testfixture.beans.CollectingReaderEventListener;
|
||||||
import org.springframework.beans.test.fixtures.beans.CustomEnum;
|
import org.springframework.beans.testfixture.beans.CustomEnum;
|
||||||
import org.springframework.beans.test.fixtures.beans.TestBean;
|
import org.springframework.beans.testfixture.beans.TestBean;
|
||||||
import org.springframework.core.io.ClassPathResource;
|
import org.springframework.core.io.ClassPathResource;
|
||||||
import org.springframework.util.LinkedCaseInsensitiveMap;
|
import org.springframework.util.LinkedCaseInsensitiveMap;
|
||||||
|
|
||||||
|
|
|
@ -38,8 +38,8 @@ import org.springframework.beans.factory.config.ListFactoryBean;
|
||||||
import org.springframework.beans.factory.config.MapFactoryBean;
|
import org.springframework.beans.factory.config.MapFactoryBean;
|
||||||
import org.springframework.beans.factory.config.SetFactoryBean;
|
import org.springframework.beans.factory.config.SetFactoryBean;
|
||||||
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
|
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
|
||||||
import org.springframework.beans.test.fixtures.beans.HasMap;
|
import org.springframework.beans.testfixture.beans.HasMap;
|
||||||
import org.springframework.beans.test.fixtures.beans.TestBean;
|
import org.springframework.beans.testfixture.beans.TestBean;
|
||||||
import org.springframework.core.io.ClassPathResource;
|
import org.springframework.core.io.ClassPathResource;
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
|
|
|
@ -25,7 +25,7 @@ import org.springframework.beans.factory.BeanDefinitionStoreException;
|
||||||
import org.springframework.beans.factory.support.BeanDefinitionRegistry;
|
import org.springframework.beans.factory.support.BeanDefinitionRegistry;
|
||||||
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
|
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
|
||||||
import org.springframework.beans.factory.support.SimpleBeanDefinitionRegistry;
|
import org.springframework.beans.factory.support.SimpleBeanDefinitionRegistry;
|
||||||
import org.springframework.beans.test.fixtures.beans.TestBean;
|
import org.springframework.beans.testfixture.beans.TestBean;
|
||||||
import org.springframework.core.io.ClassPathResource;
|
import org.springframework.core.io.ClassPathResource;
|
||||||
import org.springframework.core.io.InputStreamResource;
|
import org.springframework.core.io.InputStreamResource;
|
||||||
import org.springframework.core.io.Resource;
|
import org.springframework.core.io.Resource;
|
||||||
|
|
|
@ -30,11 +30,11 @@ import org.springframework.beans.factory.BeanFactory;
|
||||||
import org.springframework.beans.factory.config.BeanPostProcessor;
|
import org.springframework.beans.factory.config.BeanPostProcessor;
|
||||||
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
|
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
|
||||||
import org.springframework.beans.factory.support.RootBeanDefinition;
|
import org.springframework.beans.factory.support.RootBeanDefinition;
|
||||||
import org.springframework.beans.test.fixtures.beans.ITestBean;
|
import org.springframework.beans.testfixture.beans.ITestBean;
|
||||||
import org.springframework.beans.test.fixtures.beans.LifecycleBean;
|
import org.springframework.beans.testfixture.beans.LifecycleBean;
|
||||||
import org.springframework.beans.test.fixtures.beans.TestBean;
|
import org.springframework.beans.testfixture.beans.TestBean;
|
||||||
import org.springframework.beans.test.fixtures.beans.factory.DummyFactory;
|
import org.springframework.beans.testfixture.beans.factory.DummyFactory;
|
||||||
import org.springframework.beans.test.fixtures.factory.xml.AbstractListableBeanFactoryTests;
|
import org.springframework.beans.testfixture.factory.xml.AbstractListableBeanFactoryTests;
|
||||||
import org.springframework.core.io.ClassPathResource;
|
import org.springframework.core.io.ClassPathResource;
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
|
|
|
@ -43,11 +43,11 @@ import org.springframework.beans.BeanWrapperImpl;
|
||||||
import org.springframework.beans.BeansException;
|
import org.springframework.beans.BeansException;
|
||||||
import org.springframework.beans.MutablePropertyValues;
|
import org.springframework.beans.MutablePropertyValues;
|
||||||
import org.springframework.beans.PropertyValue;
|
import org.springframework.beans.PropertyValue;
|
||||||
import org.springframework.beans.test.fixtures.beans.BooleanTestBean;
|
import org.springframework.beans.testfixture.beans.BooleanTestBean;
|
||||||
import org.springframework.beans.test.fixtures.beans.ITestBean;
|
import org.springframework.beans.testfixture.beans.ITestBean;
|
||||||
import org.springframework.beans.test.fixtures.beans.IndexedTestBean;
|
import org.springframework.beans.testfixture.beans.IndexedTestBean;
|
||||||
import org.springframework.beans.test.fixtures.beans.NumberTestBean;
|
import org.springframework.beans.testfixture.beans.NumberTestBean;
|
||||||
import org.springframework.beans.test.fixtures.beans.TestBean;
|
import org.springframework.beans.testfixture.beans.TestBean;
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
|
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
|
||||||
|
@ -593,9 +593,9 @@ public class CustomEditorTests {
|
||||||
@Test
|
@Test
|
||||||
public void testClassEditorWithArray() {
|
public void testClassEditorWithArray() {
|
||||||
PropertyEditor classEditor = new ClassEditor();
|
PropertyEditor classEditor = new ClassEditor();
|
||||||
classEditor.setAsText("org.springframework.beans.test.fixtures.beans.TestBean[]");
|
classEditor.setAsText("org.springframework.beans.testfixture.beans.TestBean[]");
|
||||||
assertThat(classEditor.getValue()).isEqualTo(TestBean[].class);
|
assertThat(classEditor.getValue()).isEqualTo(TestBean[].class);
|
||||||
assertThat(classEditor.getAsText()).isEqualTo("org.springframework.beans.test.fixtures.beans.TestBean[]");
|
assertThat(classEditor.getAsText()).isEqualTo("org.springframework.beans.testfixture.beans.TestBean[]");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -21,7 +21,7 @@ import java.util.List;
|
||||||
|
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
import org.springframework.beans.test.fixtures.beans.TestBean;
|
import org.springframework.beans.testfixture.beans.TestBean;
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
|
|
||||||
|
|
|
@ -22,8 +22,8 @@ import org.junit.jupiter.api.Test
|
||||||
import org.springframework.beans.factory.BeanCreationException
|
import org.springframework.beans.factory.BeanCreationException
|
||||||
import org.springframework.beans.factory.support.DefaultListableBeanFactory
|
import org.springframework.beans.factory.support.DefaultListableBeanFactory
|
||||||
import org.springframework.beans.factory.support.RootBeanDefinition
|
import org.springframework.beans.factory.support.RootBeanDefinition
|
||||||
import org.springframework.beans.test.fixtures.beans.Colour
|
import org.springframework.beans.testfixture.beans.Colour
|
||||||
import org.springframework.beans.test.fixtures.beans.TestBean
|
import org.springframework.beans.testfixture.beans.TestBean
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tests for Kotlin support with [Autowired].
|
* Tests for Kotlin support with [Autowired].
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue