diff --git a/org.springframework.test/src/main/java/org/springframework/test/jpa/AbstractAspectjJpaTests.java b/org.springframework.test/src/main/java/org/springframework/test/jpa/AbstractAspectjJpaTests.java index 70478983bec..a47c8195eb6 100644 --- a/org.springframework.test/src/main/java/org/springframework/test/jpa/AbstractAspectjJpaTests.java +++ b/org.springframework.test/src/main/java/org/springframework/test/jpa/AbstractAspectjJpaTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2006 the original author or authors. + * Copyright 2002-2009 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -21,14 +21,16 @@ import org.aspectj.weaver.loadtime.ClassPreProcessorAgentAdapter; import org.springframework.instrument.classloading.ResourceOverridingShadowingClassLoader; /** - * Subclass of AbstractJpaTests that activates AspectJ load-time weaving - * and allows the ability to specify a custom location for AspectJ's - * aop.xml file. + * Subclass of {@link AbstractJpaTests} that activates AspectJ load-time weaving and + * allows for specifying a custom location for AspectJ's aop.xml file. * * @author Rod Johnson * @author Juergen Hoeller * @since 2.0 + * @deprecated as of Spring 3.0, in favor of using the listener-based test context framework + * ({@link org.springframework.test.context.junit38.AbstractJUnit38SpringContextTests}) */ +@Deprecated public abstract class AbstractAspectjJpaTests extends AbstractJpaTests { /** diff --git a/org.springframework.test/src/main/java/org/springframework/test/jpa/AbstractJpaTests.java b/org.springframework.test/src/main/java/org/springframework/test/jpa/AbstractJpaTests.java index 821539121f3..05b2f3cd693 100644 --- a/org.springframework.test/src/main/java/org/springframework/test/jpa/AbstractJpaTests.java +++ b/org.springframework.test/src/main/java/org/springframework/test/jpa/AbstractJpaTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2008 the original author or authors. + * Copyright 2002-2009 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -77,7 +77,10 @@ import org.springframework.util.StringUtils; * @author Rob Harrop * @author Juergen Hoeller * @since 2.0 + * @deprecated as of Spring 3.0, in favor of using the listener-based test context framework + * ({@link org.springframework.test.context.junit38.AbstractJUnit38SpringContextTests}) */ +@Deprecated public abstract class AbstractJpaTests extends AbstractAnnotationAwareTransactionalTests { private static final String DEFAULT_ORM_XML_LOCATION = "META-INF/orm.xml";