AbstractJUnit38SpringContextTests
)@Deprecated public abstract class AbstractAspectjJpaTests extends AbstractJpaTests
AbstractJpaTests
that activates AspectJ load-time weaving and
allows for specifying a custom location for AspectJ's aop.xml
file.Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_AOP_XML_LOCATION
Deprecated.
Default location of the
aop.xml file in the class path:
"META-INF/aop.xml" |
entityManagerFactory, sharedEntityManager
profileValueSource, simpleJdbcTemplate
jdbcTemplate
transactionDefinition, transactionManager, transactionStatus
AUTOWIRE_BY_NAME, AUTOWIRE_BY_TYPE, AUTOWIRE_NO
applicationContext
logger
Constructor and Description |
---|
AbstractAspectjJpaTests()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected void |
customizeResourceOverridingShadowingClassLoader(ClassLoader shadowingClassLoader)
Deprecated.
Customize the shadowing class loader.
|
protected String |
getActualAopXmlLocation()
Deprecated.
Return the actual location of the
aop.xml file
in the class path. |
cacheKeys, createContainerManagedEntityManager, createShadowingClassLoader, getActualOrmXmlLocation, runBare, setDirty, setEntityManagerFactory, shouldUseShadowLoader
findUniqueProfileValueSourceFromContext, getTestMethod, isDisabledInThisEnvironment, isRollback, setDataSource
countRowsInTable, deleteFromTables, executeSqlScript, getJdbcTemplate, setComplete, setSqlScriptEncoding
endTransaction, isDefaultRollback, onSetUp, onSetUpBeforeTransaction, onSetUpInTransaction, onTearDown, onTearDownAfterTransaction, onTearDownInTransaction, preventTransaction, setDefaultRollback, setTransactionDefinition, setTransactionManager, startNewTransaction
getAutowireMode, injectDependencies, isDependencyCheck, isPopulateProtectedVariables, prepareTestInstance, setAutowireMode, setDependencyCheck, setPopulateProtectedVariables
contextKey, createApplicationContext, createBeanDefinitionReader, customizeBeanFactory, getApplicationContext, getConfigLocations, getConfigPath, getConfigPaths, getLoadCount, loadContext, loadContextLocations, prepareApplicationContext, setUp, tearDown
addContext, contextKeyString, getContext, hasCachedContext, isContextKeyEmpty, setDirty
getDisabledTestCount, isDisabledInThisEnvironment, recordDisabled
countTestCases, createResult, getName, run, run, runTest, setName, toString
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, failNotEquals, failNotSame, failSame, format
public static final String DEFAULT_AOP_XML_LOCATION
aop.xml
file in the class path:
"META-INF/aop.xml"protected void customizeResourceOverridingShadowingClassLoader(ClassLoader shadowingClassLoader)
AbstractJpaTests
customizeResourceOverridingShadowingClassLoader
in class AbstractJpaTests
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()
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.