public abstract class

AbstractAspectjJpaTests

extends AbstractJpaTests
java.lang.Object
   ↳ junit.framework.Assert
     ↳ junit.framework.TestCase
       ↳ org.springframework.test.ConditionalTestCase
         ↳ org.springframework.test.AbstractSpringContextTests
           ↳ org.springframework.test.AbstractSingleSpringContextTests
             ↳ org.springframework.test.AbstractDependencyInjectionSpringContextTests
               ↳ org.springframework.test.AbstractTransactionalSpringContextTests
                 ↳ org.springframework.test.AbstractTransactionalDataSourceSpringContextTests
                   ↳ org.springframework.test.annotation.AbstractAnnotationAwareTransactionalTests
                     ↳ org.springframework.test.jpa.AbstractJpaTests
                       ↳ org.springframework.test.jpa.AbstractAspectjJpaTests

This class is deprecated.
as of Spring 3.0, in favor of using the listener-based test context framework (AbstractJUnit38SpringContextTests)

Class Overview

Subclass of AbstractJpaTests that activates AspectJ load-time weaving and allows for specifying a custom location for AspectJ's aop.xml file.

Summary

Constants
String DEFAULT_AOP_XML_LOCATION Default location of the aop.xml file in the class path: "META-INF/aop.xml"
[Expand]
Inherited Constants
From class org.springframework.test.AbstractDependencyInjectionSpringContextTests
[Expand]
Inherited Fields
From class org.springframework.test.jpa.AbstractJpaTests
From class org.springframework.test.annotation.AbstractAnnotationAwareTransactionalTests
From class org.springframework.test.AbstractTransactionalDataSourceSpringContextTests
From class org.springframework.test.AbstractTransactionalSpringContextTests
From class org.springframework.test.AbstractSingleSpringContextTests
From class org.springframework.test.ConditionalTestCase
Public Constructors
AbstractAspectjJpaTests()
Protected Methods
void customizeResourceOverridingShadowingClassLoader(ClassLoader shadowingClassLoader)
Customize the shadowing class loader.
String getActualAopXmlLocation()
Return the actual location of the aop.xml file in the class path.
[Expand]
Inherited Methods
From class org.springframework.test.jpa.AbstractJpaTests
From class org.springframework.test.annotation.AbstractAnnotationAwareTransactionalTests
From class org.springframework.test.AbstractTransactionalDataSourceSpringContextTests
From class org.springframework.test.AbstractTransactionalSpringContextTests
From class org.springframework.test.AbstractDependencyInjectionSpringContextTests
From class org.springframework.test.AbstractSingleSpringContextTests
From class org.springframework.test.AbstractSpringContextTests
From class org.springframework.test.ConditionalTestCase
From class junit.framework.TestCase
From class junit.framework.Assert
From class java.lang.Object
From interface junit.framework.Test

Constants

public static final String DEFAULT_AOP_XML_LOCATION

Default location of the aop.xml file in the class path: "META-INF/aop.xml"

Constant Value: "META-INF/aop.xml"

Public Constructors

public AbstractAspectjJpaTests ()

Protected Methods

protected void customizeResourceOverridingShadowingClassLoader (ClassLoader shadowingClassLoader)

Customize the shadowing class loader.

Parameters
shadowingClassLoader this parameter is actually of type ResourceOverridingShadowingClassLoader, and can safely to be cast to that type. However, the signature must not be of that type as that would cause the present class loader to load that type.

protected String getActualAopXmlLocation ()

Return the actual location of the aop.xml file in the class path. The default is "META-INF/aop.xml".

Override this method to point to a specific aop.xml file within your test suite, allowing for different config files to co-exist within the same class path.