@ -411,8 +413,15 @@ public class SpringJUnit4ClassRunner extends BlockJUnit4ClassRunner {
@@ -411,8 +413,15 @@ public class SpringJUnit4ClassRunner extends BlockJUnit4ClassRunner {
@ -81,24 +83,22 @@ public class DirtiesContextTestExecutionListener extends AbstractTestExecutionLi
@@ -81,24 +83,22 @@ public class DirtiesContextTestExecutionListener extends AbstractTestExecutionLi
MethodtestMethod=testContext.getTestMethod();
Assert.notNull(testMethod,"The test method of the supplied TestContext must not be null");
@ -107,7 +107,7 @@ public class DirtiesContextTestExecutionListener extends AbstractTestExecutionLi
@@ -107,7 +107,7 @@ public class DirtiesContextTestExecutionListener extends AbstractTestExecutionLi
@ -118,15 +118,16 @@ public class DirtiesContextTestExecutionListener extends AbstractTestExecutionLi
@@ -118,15 +118,16 @@ public class DirtiesContextTestExecutionListener extends AbstractTestExecutionLi
Class<?>testClass=testContext.getTestClass();
Assert.notNull(testClass,"The test class of the supplied TestContext must not be null");
@ -414,15 +416,17 @@ public class TransactionalTestExecutionListener extends AbstractTestExecutionLis
@@ -414,15 +416,17 @@ public class TransactionalTestExecutionListener extends AbstractTestExecutionLis
"Method-level @Rollback(%s) overrides default rollback [%s] for test context %s.",
rollbackOverride,rollback,testContext));
}
rollback=rollbackOverride;
}
else{
if(logger.isDebugEnabled()){
logger.debug("No method-level @Rollback override: using default rollback ["+rollback
+"] for test context "+testContext);
logger.debug(String.format(
"No method-level @Rollback override: using default rollback [%s] for test context %s.",rollback,
testContext));
}
}
returnrollback;
@ -524,21 +528,25 @@ public class TransactionalTestExecutionListener extends AbstractTestExecutionLis
@@ -524,21 +528,25 @@ public class TransactionalTestExecutionListener extends AbstractTestExecutionLis
@ -548,8 +556,8 @@ public class TransactionalTestExecutionListener extends AbstractTestExecutionLis
@@ -548,8 +556,8 @@ public class TransactionalTestExecutionListener extends AbstractTestExecutionLis
@ -121,6 +121,26 @@ public class ContextLoaderUtilsActiveProfilesTests extends AbstractContextLoader
@@ -121,6 +121,26 @@ public class ContextLoaderUtilsActiveProfilesTests extends AbstractContextLoader
@ -256,6 +276,18 @@ public class ContextLoaderUtilsActiveProfilesTests extends AbstractContextLoader
@@ -256,6 +276,18 @@ public class ContextLoaderUtilsActiveProfilesTests extends AbstractContextLoader
@ -83,6 +83,24 @@ public class ContextLoaderUtilsConfigurationAttributesTests extends AbstractCont
@@ -83,6 +83,24 @@ public class ContextLoaderUtilsConfigurationAttributesTests extends AbstractCont
@ -55,13 +55,9 @@ public class ContextLoaderUtilsContextHierarchyTests extends AbstractContextLoad
@@ -55,13 +55,9 @@ public class ContextLoaderUtilsContextHierarchyTests extends AbstractContextLoad
@ -98,8 +94,8 @@ public class ContextLoaderUtilsContextHierarchyTests extends AbstractContextLoad
@@ -98,8 +94,8 @@ public class ContextLoaderUtilsContextHierarchyTests extends AbstractContextLoad
@ -154,36 +150,39 @@ public class ContextLoaderUtilsContextHierarchyTests extends AbstractContextLoad
@@ -154,36 +150,39 @@ public class ContextLoaderUtilsContextHierarchyTests extends AbstractContextLoad
@ -408,7 +407,7 @@ public class ContextLoaderUtilsContextHierarchyTests extends AbstractContextLoad
@@ -408,7 +407,7 @@ public class ContextLoaderUtilsContextHierarchyTests extends AbstractContextLoad
@ -569,4 +568,31 @@ public class ContextLoaderUtilsContextHierarchyTests extends AbstractContextLoad
@@ -569,4 +568,31 @@ public class ContextLoaderUtilsContextHierarchyTests extends AbstractContextLoad
@ -135,7 +144,23 @@ public class DirtiesContextTestExecutionListenerTests {
@@ -135,7 +144,23 @@ public class DirtiesContextTestExecutionListenerTests {
@ -156,17 +181,17 @@ public class DirtiesContextTestExecutionListenerTests {
@@ -156,17 +181,17 @@ public class DirtiesContextTestExecutionListenerTests {
@ -174,6 +199,15 @@ public class DirtiesContextTestExecutionListenerTests {
@@ -174,6 +199,15 @@ public class DirtiesContextTestExecutionListenerTests {
@ -198,4 +232,20 @@ public class DirtiesContextTestExecutionListenerTests {
@@ -198,4 +232,20 @@ public class DirtiesContextTestExecutionListenerTests {
@ -157,6 +247,13 @@ public class TransactionalTestExecutionListenerTests {
@@ -157,6 +247,13 @@ public class TransactionalTestExecutionListenerTests {
privatestatic@interfaceMetaTransactional{
}
@Transactional
@Retention(RetentionPolicy.RUNTIME)
privatestatic@interfaceMetaTxWithOverride{
Propagationpropagation()defaultREQUIRED;
}
@BeforeTransaction
@Retention(RetentionPolicy.RUNTIME)
privatestatic@interfaceMetaBeforeTransaction{
@ -167,6 +264,18 @@ public class TransactionalTestExecutionListenerTests {
@@ -167,6 +264,18 @@ public class TransactionalTestExecutionListenerTests {
privatestatic@interfaceMetaAfterTransaction{
}
@TransactionConfiguration
@Retention(RetentionPolicy.RUNTIME)
privatestatic@interfaceMetaTxConfig{
StringtransactionManager()default"metaTxMgr";
}
@Rollback(false)
@Retention(RetentionPolicy.RUNTIME)
privatestatic@interfaceCommit{
}
privatestaticabstractclassInvocable{
booleaninvoked=false;
@ -213,20 +322,46 @@ public class TransactionalTestExecutionListenerTests {
@@ -213,20 +322,46 @@ public class TransactionalTestExecutionListenerTests {