当前页面:
在线文档首页 >
Spring Framework 2.1.0 API 文档英文版
AbstractAnnotationAwareTransactionalTests (Spring Framework API 2.1) - Spring Framework 2.1.0 API 文档英文版
org.springframework.test.annotation
Class AbstractAnnotationAwareTransactionalTests
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
- All Implemented Interfaces:
- Test
- Direct Known Subclasses:
- AbstractJpaTests
public abstract class AbstractAnnotationAwareTransactionalTests
- extends AbstractTransactionalDataSourceSpringContextTests
Java 5 specific subclass of
AbstractTransactionalDataSourceSpringContextTests
, exposing a
SimpleJdbcTemplate
and obeying annotations for transaction control.
For example, test methods can be annotated with the regular Spring
Transactional
annotation
(for example, to force execution in a read-only transaction) or with the
NotTransactional
annotation to prevent any transaction being created
at all.
- Since:
- 2.0
- Author:
- Rod Johnson
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.AbstractSingleSpringContextTests |
contextKey, createApplicationContext, customizeBeanFactory, getApplicationContext, getConfigLocations, getConfigPath, getConfigPaths, getLoadCount, loadContext, loadContextLocations, setDirty, setUp, tearDown |
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 |
simpleJdbcTemplate
protected SimpleJdbcTemplate simpleJdbcTemplate
profileValueSource
protected ProfileValueSource profileValueSource
AbstractAnnotationAwareTransactionalTests
public AbstractAnnotationAwareTransactionalTests()
setDataSource
public void setDataSource(DataSource dataSource)
- Description copied from class:
AbstractTransactionalDataSourceSpringContextTests
- Setter: DataSource is provided by Dependency Injection.
- Overrides:
setDataSource
in class AbstractTransactionalDataSourceSpringContextTests
findUniqueProfileValueSourceFromContext
protected void findUniqueProfileValueSourceFromContext(ApplicationContext ac)
runBare
public void runBare()
throws Throwable
- Overridden to populate transaction definition from annotations.
- Overrides:
runBare
in class ConditionalTestCase
- Throws:
Throwable
isDisabledInThisEnvironment
protected boolean isDisabledInThisEnvironment(Method testMethod)
Copyright © 2002-2007 The Spring Framework.