officially deprecated AbstractJpaTests

This commit is contained in:
Juergen Hoeller 2009-04-12 21:16:12 +00:00
parent 9baf9cdc2f
commit ee5e76c48c
2 changed files with 10 additions and 5 deletions

View File

@ -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"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with 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; import org.springframework.instrument.classloading.ResourceOverridingShadowingClassLoader;
/** /**
* Subclass of AbstractJpaTests that activates AspectJ load-time weaving * Subclass of {@link AbstractJpaTests} that activates AspectJ load-time weaving and
* and allows the ability to specify a custom location for AspectJ's * allows for specifying a custom location for AspectJ's <code>aop.xml</code> file.
* <code>aop.xml</code> file.
* *
* @author Rod Johnson * @author Rod Johnson
* @author Juergen Hoeller * @author Juergen Hoeller
* @since 2.0 * @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 { public abstract class AbstractAspectjJpaTests extends AbstractJpaTests {
/** /**

View File

@ -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"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with 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 Rob Harrop
* @author Juergen Hoeller * @author Juergen Hoeller
* @since 2.0 * @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 { public abstract class AbstractJpaTests extends AbstractAnnotationAwareTransactionalTests {
private static final String DEFAULT_ORM_XML_LOCATION = "META-INF/orm.xml"; private static final String DEFAULT_ORM_XML_LOCATION = "META-INF/orm.xml";