polishing .aop tests

This commit is contained in:
Chris Beams 2008-12-20 23:34:49 +00:00
parent 9211357e94
commit 4671fd7141
24 changed files with 30 additions and 30 deletions

View File

@ -50,12 +50,12 @@ import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;
import org.springframework.util.ObjectUtils;
import test.aspect.PerTargetAspect;
import test.aspect.TwoAdviceAspect;
import test.aop.DefaultLockable;
import test.aop.Lockable;
import test.aop.PerTargetAspect;
import test.aop.TwoAdviceAspect;
import test.beans.ITestBean;
import test.beans.TestBean;
import test.mixin.DefaultLockable;
import test.mixin.Lockable;
/**
* Abstract tests for AspectJAdvisorFactory.

View File

@ -24,7 +24,7 @@ import org.springframework.aop.aspectj.AspectJExpressionPointcut;
import org.springframework.aop.aspectj.AspectJExpressionPointcutTests;
import org.springframework.aop.framework.AopConfigException;
import test.aspect.PerTargetAspect;
import test.aop.PerTargetAspect;
import test.beans.TestBean;

View File

@ -23,7 +23,7 @@ import org.junit.Test;
import org.springframework.aop.Pointcut;
import org.springframework.aop.aspectj.annotation.AbstractAspectJAdvisorFactoryTests.ExceptionAspect;
import test.aspect.PerTargetAspect;
import test.aop.PerTargetAspect;
/**

View File

@ -23,7 +23,7 @@ import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.junit.Test;
import test.aspect.PerThisAspect;
import test.aop.PerThisAspect;
/**

View File

@ -33,11 +33,11 @@ import org.springframework.aop.support.DefaultIntroductionAdvisor;
import org.springframework.aop.support.DefaultPointcutAdvisor;
import org.springframework.aop.support.DelegatingIntroductionInterceptor;
import test.advice.MethodCounter;
import test.aop.MethodCounter;
import test.aop.NopInterceptor;
import test.beans.IOther;
import test.beans.ITestBean;
import test.beans.TestBean;
import test.interceptor.NopInterceptor;
import test.util.TimeStamped;
/**

View File

@ -35,7 +35,7 @@ import org.junit.Ignore;
import org.junit.Test;
import org.springframework.aop.ThrowsAdvice;
import test.advice.MethodCounter;
import test.aop.MethodCounter;
/**
* Unit tests for {@link ThrowsAdviceInterceptor}

View File

@ -6,7 +6,7 @@
-->
<beans>
<bean id="nopInterceptor" class="test.interceptor.NopInterceptor"/>
<bean id="nopInterceptor" class="test.aop.NopInterceptor"/>
<bean id="exposeInvocation" class="org.springframework.beans.factory.config.FieldRetrievingFactoryBean">
<property name="targetClass">

View File

@ -27,8 +27,8 @@ import org.springframework.aop.Pointcut;
import org.springframework.aop.interceptor.ExposeInvocationInterceptor;
import org.springframework.aop.target.EmptyTargetSource;
import test.aop.NopInterceptor;
import test.beans.TestBean;
import test.interceptor.NopInterceptor;
import test.util.SerializationTestUtils;
/**

View File

@ -22,9 +22,9 @@ import org.junit.Test;
import org.springframework.aop.Pointcut;
import org.springframework.aop.framework.ProxyFactory;
import test.aop.NopInterceptor;
import test.beans.ITestBean;
import test.beans.TestBean;
import test.interceptor.NopInterceptor;
/**
* @author Rod Johnson

View File

@ -27,13 +27,13 @@ import org.springframework.aop.IntroductionAdvisor;
import org.springframework.aop.IntroductionInterceptor;
import org.springframework.aop.framework.ProxyFactory;
import test.aop.SerializableNopInterceptor;
import test.beans.INestedTestBean;
import test.beans.ITestBean;
import test.beans.NestedTestBean;
import test.beans.Person;
import test.beans.SerializablePerson;
import test.beans.TestBean;
import test.interceptor.SerializableNopInterceptor;
import test.util.SerializationTestUtils;
import test.util.TimeStamped;

View File

@ -23,10 +23,10 @@ import org.junit.Test;
import org.springframework.aop.framework.Advised;
import org.springframework.aop.framework.ProxyFactory;
import test.aop.NopInterceptor;
import test.aop.SerializableNopInterceptor;
import test.beans.Person;
import test.beans.SerializablePerson;
import test.interceptor.NopInterceptor;
import test.interceptor.SerializableNopInterceptor;
import test.util.SerializationTestUtils;
/**

View File

@ -9,7 +9,7 @@
<property name="age"><value>666</value></property>
</bean>
<bean id="nopInterceptor" class="test.interceptor.SerializableNopInterceptor"/>
<bean id="nopInterceptor" class="test.aop.SerializableNopInterceptor"/>
<bean id="settersAdvisor" class="org.springframework.aop.support.RegexpMethodPointcutAdvisor">
<property name="advice"><ref local="nopInterceptor"/></property>

View File

@ -24,11 +24,11 @@ import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.core.io.ClassPathResource;
import test.aop.NopInterceptor;
import test.aop.SerializableNopInterceptor;
import test.beans.ITestBean;
import test.beans.Person;
import test.beans.TestBean;
import test.interceptor.NopInterceptor;
import test.interceptor.SerializableNopInterceptor;
import test.util.SerializationTestUtils;
/**

View File

@ -27,10 +27,10 @@ import org.springframework.aop.support.DefaultPointcutAdvisor;
import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.core.io.ClassPathResource;
import test.aop.SerializableNopInterceptor;
import test.beans.Person;
import test.beans.SerializablePerson;
import test.beans.SideEffectBean;
import test.interceptor.SerializableNopInterceptor;
import test.util.SerializationTestUtils;

View File

@ -16,7 +16,7 @@
<property name="targetBeanName"><value>prototypeTest</value></property>
</bean>
<bean id="debugInterceptor" class="test.interceptor.NopInterceptor" />
<bean id="debugInterceptor" class="test.aop.NopInterceptor" />
<bean id="singleton" class="org.springframework.aop.framework.ProxyFactoryBean">
<property name="interceptorNames"><value>debugInterceptor,test</value></property>

View File

@ -11,7 +11,7 @@
<property name="targetBeanName"><value>prototypeTest</value></property>
</bean>
<bean id="debugInterceptor" class="test.interceptor.NopInterceptor" />
<bean id="debugInterceptor" class="test.aop.NopInterceptor" />
<!--
We want to invoke the getStatsMixin method on our ThreadLocal invoker

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package test.mixin;
package test.aop;
/**
* Simple implementation of Lockable interface for use in mixins.

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package test.mixin;
package test.aop;
/**

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package test.advice;
package test.aop;
import java.io.Serializable;
import java.lang.reflect.Method;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package test.interceptor;
package test.aop;
import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;

View File

@ -1,7 +1,7 @@
/**
*
*/
package test.aspect;
package test.aop;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package test.aspect;
package test.aop;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package test.interceptor;
package test.aop;
import java.io.Serializable;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package test.aspect;
package test.aop;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;