From ee5e76c48c70b48161745c73f5314041c8687f07 Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Sun, 12 Apr 2009 21:16:12 +0000 Subject: [PATCH] officially deprecated AbstractJpaTests --- .../test/jpa/AbstractAspectjJpaTests.java | 10 ++++++---- .../org/springframework/test/jpa/AbstractJpaTests.java | 5 ++++- 2 files changed, 10 insertions(+), 5 deletions(-) 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 70478983be..a47c8195eb 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 821539121f..05b2f3cd69 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";