站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Spring Framework 2.1.0 API 文档英文版

AbstractAspectjJpaTests (Spring Framework API 2.1) - Spring Framework 2.1.0 API 文档英文版


The Spring Framework

org.springframework.test.jpa
Class AbstractAspectjJpaTests

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.springframework.test.ConditionalTestCase
              extended by org.springframework.test.AbstractSpringContextTests
                  extended by org.springframework.test.AbstractSingleSpringContextTests
                      extended by org.springframework.test.AbstractDependencyInjectionSpringContextTests
                          extended by org.springframework.test.AbstractTransactionalSpringContextTests
                              extended by org.springframework.test.AbstractTransactionalDataSourceSpringContextTests
                                  extended by org.springframework.test.annotation.AbstractAnnotationAwareTransactionalTests
                                      extended by org.springframework.test.jpa.AbstractJpaTests
                                          extended by 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

Field Summary
static String DEFAULT_AOP_XML_LOCATION
          Default location of the aop.xml file in the class path: "META-INF/aop.xml"
 
Fields inherited from class org.springframework.test.jpa.AbstractJpaTests
entityManagerFactory, sharedEntityManager
 
Fields inherited from class org.springframework.test.annotation.AbstractAnnotationAwareTransactionalTests
profileValueSource, simpleJdbcTemplate
 
Fields inherited from class org.springframework.test.AbstractTransactionalDataSourceSpringContextTests
jdbcTemplate
 
Fields inherited from class org.springframework.test.AbstractTransactionalSpringContextTests
transactionDefinition, transactionManager, transactionStatus
 
Fields inherited from class org.springframework.test.AbstractDependencyInjectionSpringContextTests
AUTOWIRE_BY_NAME, AUTOWIRE_BY_TYPE, AUTOWIRE_NO
 
Fields inherited from class org.springframework.test.AbstractSingleSpringContextTests
applicationContext
 
Fields inherited from class org.springframework.test.ConditionalTestCase
logger
 
Constructor Summary
AbstractAspectjJpaTests()
           
 
Method Summary
protected  void customizeResourceOverridingShadowingClassLoader(ClassLoader shadowingClassLoader)
          Customize the shadowing class loader.
protected  String getActualAopXmlLocation()
          Return the actual location of the aop.xml file in the class path.
 
Methods inherited from class org.springframework.test.jpa.AbstractJpaTests
cacheKeys, createContainerManagedEntityManager, createShadowingClassLoader, getActualOrmXmlLocation, runBare, setDirty, setEntityManagerFactory, shouldUseShadowLoader
 
Methods inherited from class org.springframework.test.annotation.AbstractAnnotationAwareTransactionalTests
findUniqueProfileValueSourceFromContext, isDisabledInThisEnvironment, setDataSource
 
Methods inherited from class org.springframework.test.AbstractTransactionalDataSourceSpringContextTests
countRowsInTable, deleteFromTables, executeSqlScript, getJdbcTemplate, setComplete
 
Methods inherited from class org.springframework.test.AbstractTransactionalSpringContextTests
endTransaction, onSetUp, onSetUpBeforeTransaction, onSetUpInTransaction, onTearDown, onTearDownAfterTransaction, onTearDownInTransaction, preventTransaction, setDefaultRollback, setTransactionDefinition, setTransactionManager, startNewTransaction
 
Methods inherited from class org.springframework.test.AbstractDependencyInjectionSpringContextTests
getAutowireMode, injectDependencies, isDependencyCheck, isPopulateProtectedVariables, prepareTestInstance, setAutowireMode, setDependencyCheck, setPopulateProtectedVariables
 
Methods inherited from class org.springframework.test.AbstractSingleSpringContextTests
contextKey, createApplicationContext, customizeBeanFactory, getApplicationContext, getConfigLocations, getConfigPath, getConfigPaths, getLoadCount, loadContext, loadContextLocations, setUp, tearDown
 
Methods inherited from class org.springframework.test.AbstractSpringContextTests
addContext, contextKeyString, getContext, hasCachedContext, setDirty
 
Methods inherited from class org.springframework.test.ConditionalTestCase
getDisabledTestCount, isDisabledInThisEnvironment, recordDisabled
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runTest, setName, toString
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

AbstractAspectjJpaTests

public AbstractAspectjJpaTests()
Method Detail

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.


The Spring Framework

Copyright © 2002-2007 The Spring Framework.