@ -136,6 +136,7 @@ public class TransactionalTestExecutionListener extends AbstractTestExecutionLis
@@ -136,6 +136,7 @@ public class TransactionalTestExecutionListener extends AbstractTestExecutionLis
// Do not require @Transactional test methods to be public.
@ -159,10 +160,10 @@ public class TransactionalTestExecutionListener extends AbstractTestExecutionLis
@@ -159,10 +160,10 @@ public class TransactionalTestExecutionListener extends AbstractTestExecutionLis
@ -172,8 +173,8 @@ public class TransactionalTestExecutionListener extends AbstractTestExecutionLis
@@ -172,8 +173,8 @@ public class TransactionalTestExecutionListener extends AbstractTestExecutionLis
transactionAttribute);
if(logger.isDebugEnabled()){
logger.debug("Explicit transaction definition ["+transactionAttribute+"] found for test context "+
@ -181,9 +182,8 @@ public class TransactionalTestExecutionListener extends AbstractTestExecutionLis
@@ -181,9 +182,8 @@ public class TransactionalTestExecutionListener extends AbstractTestExecutionLis
"Failed to retrieve PlatformTransactionManager for @Transactional test for test context %s.",
testContext));
Assert.state(tm!=null,
()->"Failed to retrieve PlatformTransactionManager for @Transactional test: "+testContext);
}
if(tm!=null){
@ -368,8 +368,8 @@ public class TransactionalTestExecutionListener extends AbstractTestExecutionLis
@@ -368,8 +368,8 @@ public class TransactionalTestExecutionListener extends AbstractTestExecutionLis
if(rollbackPresent){
booleandefaultRollback=rollback.value();
if(logger.isDebugEnabled()){
logger.debug(String.format("Retrieved default @Rollback(%s) for test class [%s].",defaultRollback,
testClass.getName()));
logger.debug(String.format("Retrieved default @Rollback(%s) for test class [%s].",
@ -289,11 +209,84 @@ public class TransactionalTestExecutionListenerTests {
@@ -289,11 +209,84 @@ public class TransactionalTestExecutionListenerTests {
@ -308,12 +301,12 @@ public class TransactionalTestExecutionListenerTests {
@@ -308,12 +301,12 @@ public class TransactionalTestExecutionListenerTests {
@BeforeTransaction
@Retention(RetentionPolicy.RUNTIME)
privatestatic@interfaceMetaBeforeTransaction{
private@interfaceMetaBeforeTransaction{
}
@AfterTransaction
@Retention(RetentionPolicy.RUNTIME)
privatestatic@interfaceMetaAfterTransaction{
private@interfaceMetaAfterTransaction{
}
privateinterfaceInvocable{
@ -348,7 +341,6 @@ public class TransactionalTestExecutionListenerTests {
@@ -348,7 +341,6 @@ public class TransactionalTestExecutionListenerTests {
}
publicvoidtransactionalTest(){
/* no-op */
}
}
@ -361,11 +353,9 @@ public class TransactionalTestExecutionListenerTests {
@@ -361,11 +353,9 @@ public class TransactionalTestExecutionListenerTests {
@Transactional
publicvoidtransactionalTest(){
/* no-op */
}
publicvoidnonTransactionalTest(){
/* no-op */
}
}
@ -378,7 +368,6 @@ public class TransactionalTestExecutionListenerTests {
@@ -378,7 +368,6 @@ public class TransactionalTestExecutionListenerTests {
}
publicvoidtransactionalTest(){
/* no-op */
}
}
@ -391,11 +380,9 @@ public class TransactionalTestExecutionListenerTests {
@@ -391,11 +380,9 @@ public class TransactionalTestExecutionListenerTests {
@MetaTransactional
publicvoidtransactionalTest(){
/* no-op */
}
publicvoidnonTransactionalTest(){
/* no-op */
}
}
@ -408,7 +395,6 @@ public class TransactionalTestExecutionListenerTests {
@@ -408,7 +395,6 @@ public class TransactionalTestExecutionListenerTests {
}
publicvoidtransactionalTest(){
/* no-op */
}
}
@ -421,11 +407,9 @@ public class TransactionalTestExecutionListenerTests {
@@ -421,11 +407,9 @@ public class TransactionalTestExecutionListenerTests {
@MetaTxWithOverride(propagation=NOT_SUPPORTED)
publicvoidtransactionalTest(){
/* no-op */
}
publicvoidnonTransactionalTest(){
/* no-op */
}
}
@ -438,11 +422,9 @@ public class TransactionalTestExecutionListenerTests {
@@ -438,11 +422,9 @@ public class TransactionalTestExecutionListenerTests {
@Transactional
publicvoidtransactionalTest(){
/* no-op */
}
publicvoidnonTransactionalTest(){
/* no-op */
}
}
@ -455,11 +437,9 @@ public class TransactionalTestExecutionListenerTests {
@@ -455,11 +437,9 @@ public class TransactionalTestExecutionListenerTests {
@Transactional
publicvoidtransactionalTest(){
/* no-op */
}
publicvoidnonTransactionalTest(){
/* no-op */
}
}
@ -472,11 +452,9 @@ public class TransactionalTestExecutionListenerTests {
@@ -472,11 +452,9 @@ public class TransactionalTestExecutionListenerTests {
@Transactional
publicvoidtransactionalTest(){
/* no-op */
}
publicvoidnonTransactionalTest(){
/* no-op */
}
}
@ -489,11 +467,9 @@ public class TransactionalTestExecutionListenerTests {
@@ -489,11 +467,9 @@ public class TransactionalTestExecutionListenerTests {
@Transactional
publicvoidtransactionalTest(){
/* no-op */
}
publicvoidnonTransactionalTest(){
/* no-op */
}
}
@ -518,11 +494,9 @@ public class TransactionalTestExecutionListenerTests {
@@ -518,11 +494,9 @@ public class TransactionalTestExecutionListenerTests {
@Transactional
publicvoidtransactionalTest(){
/* no-op */
}
publicvoidnonTransactionalTest(){
/* no-op */
}
}
@ -531,11 +505,9 @@ public class TransactionalTestExecutionListenerTests {
@@ -531,11 +505,9 @@ public class TransactionalTestExecutionListenerTests {