org.springframework.test.jpa
Class AbstractAspectjJpaTests
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
- All Implemented Interfaces:
- Test
public abstract class AbstractAspectjJpaTests
- extends AbstractJpaTests
Subclass of AbstractJpaTests that activates AspectJ load-time weaving
and allows the ability to specify a custom location for AspectJ's
aop.xml
file.
- Since:
- 2.0
- Author:
- Rod Johnson, Juergen Hoeller
Methods inherited from class org.springframework.test.AbstractTransactionalSpringContextTests |
endTransaction, onSetUp, onSetUpBeforeTransaction, onSetUpInTransaction, onTearDown, onTearDownAfterTransaction, onTearDownInTransaction, preventTransaction, setDefaultRollback, setTransactionDefinition, setTransactionManager, startNewTransaction |
Methods inherited from class junit.framework.Assert |
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
DEFAULT_AOP_XML_LOCATION
public static final String DEFAULT_AOP_XML_LOCATION
- Default location of the
aop.xml
file in the class path:
"META-INF/aop.xml"
- See Also:
- Constant Field Values
AbstractAspectjJpaTests
public AbstractAspectjJpaTests()
customizeResourceOverridingShadowingClassLoader
protected void customizeResourceOverridingShadowingClassLoader(ClassLoader shadowingClassLoader)
- Description copied from class:
AbstractJpaTests
- Customize the shadowing class loader.
- Overrides:
customizeResourceOverridingShadowingClassLoader
in class AbstractJpaTests
- 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.
getActualAopXmlLocation
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.
Copyright © 2002-2006 The Spring Framework.