| 
 | ||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use TestContext | |
|---|---|
| org.springframework.test.context | This package contains the Spring TestContext Framework which provides annotation-driven unit and integration testing support that is agnostic of the actual testing framework in use. | 
| org.springframework.test.context.support | Support classes for the Spring TestContext Framework. | 
| org.springframework.test.context.transaction | Transactional support classes for the Spring TestContext Framework. | 
| Uses of TestContext in org.springframework.test.context | 
|---|
| Methods in org.springframework.test.context that return TestContext | |
|---|---|
| protected  TestContext | TestContextManager.getTestContext()Returns the TestContextmanaged by thisTestContextManager. | 
| Methods in org.springframework.test.context with parameters of type TestContext | |
|---|---|
|  void | TestExecutionListener.afterTestMethod(TestContext testContext)Post-processes a test just after execution of the test methodin the suppliedtest context, for example for tearing down test
 fixtures. | 
|  void | TestExecutionListener.beforeTestMethod(TestContext testContext)Pre-processes a test just before execution of the test methodin the suppliedtest context, for example for setting up test
 fixtures. | 
|  void | TestExecutionListener.prepareTestInstance(TestContext testContext)Prepares the test instanceof the suppliedtest context, for example for injecting
 dependencies. | 
| Uses of TestContext in org.springframework.test.context.support | 
|---|
| Methods in org.springframework.test.context.support with parameters of type TestContext | |
|---|---|
|  void | DirtiesContextTestExecutionListener.afterTestMethod(TestContext testContext)If the current test method of the supplied test contexthas been annotated with@DirtiesContext, theapplication contextof the test context will
 bemarked as dirty,
 and theDependencyInjectionTestExecutionListener.REINJECT_DEPENDENCIES_ATTRIBUTEwill be set totruein the test context. | 
|  void | AbstractTestExecutionListener.afterTestMethod(TestContext testContext)The default implementation is empty. | 
|  void | DependencyInjectionTestExecutionListener.beforeTestMethod(TestContext testContext)If the DependencyInjectionTestExecutionListener.REINJECT_DEPENDENCIES_ATTRIBUTEin the suppliedtest contexthas a value ofBoolean.TRUE,
 this method will have the same effect asprepareTestInstance();
 otherwise, this method will have no effect. | 
|  void | AbstractTestExecutionListener.beforeTestMethod(TestContext testContext)The default implementation is empty. | 
| protected  void | DependencyInjectionTestExecutionListener.injectDependencies(TestContext testContext)Performs dependency injection and bean initialization for the supplied TestContextas described inprepareTestInstance(). | 
|  void | DependencyInjectionTestExecutionListener.prepareTestInstance(TestContext testContext)Performs dependency injection on the test instanceof the suppliedtest contextbyautowiringandinitializingthe test instance via its ownapplication context(without
 checking dependencies). | 
|  void | AbstractTestExecutionListener.prepareTestInstance(TestContext testContext)The default implementation is empty. | 
| Uses of TestContext in org.springframework.test.context.transaction | 
|---|
| Methods in org.springframework.test.context.transaction with parameters of type TestContext | |
|---|---|
|  void | TransactionalTestExecutionListener.afterTestMethod(TestContext testContext)If a transaction is currently active for the test method of the supplied test context, this method will end the transaction
 and run@AfterTransaction methods. | 
|  void | TransactionalTestExecutionListener.beforeTestMethod(TestContext testContext)If the test method of the supplied test contextis
 configured to run within a transaction, this method will run@BeforeTransaction methodsand start a new
 transaction. | 
| protected  PlatformTransactionManager | TransactionalTestExecutionListener.getTransactionManager(TestContext testContext)Get the transaction managerto use
 for the suppliedtest context. | 
| protected  boolean | TransactionalTestExecutionListener.isDefaultRollback(TestContext testContext)Determine whether or not to rollback transactions by default for the supplied test context. | 
| protected  boolean | TransactionalTestExecutionListener.isRollback(TestContext testContext)Determine whether or not to rollback transactions for the supplied test contextby taking into consideration thedefault rollbackflag and a
 possible method-level override via theRollbackannotation. | 
| protected  void | TransactionalTestExecutionListener.runAfterTransactionMethods(TestContext testContext)Run all @AfterTransaction methodsfor the
 specifiedtest context. | 
| protected  void | TransactionalTestExecutionListener.runBeforeTransactionMethods(TestContext testContext)Run all @BeforeTransaction methodsfor the
 specifiedtest context. | 
| 
 | ||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||