Restore TransactionOperations Kotlin API compatibilty
This commit renames the Runnable variant to executeWithoutResult and uses a Consumer<TransactionStatus> parameter for better consistency with TransactionCallbackWithoutResult. Closes gh-23724
This commit is contained in:
@@ -260,7 +260,7 @@ public class SqlScriptsTestExecutionListener extends AbstractTestExecutionListen
|
||||
TransactionDefinition.PROPAGATION_REQUIRED);
|
||||
TransactionAttribute txAttr = TestContextTransactionUtils.createDelegatingTransactionAttribute(
|
||||
testContext, new DefaultTransactionAttribute(propagation));
|
||||
new TransactionTemplate(txMgr, txAttr).execute(() -> populator.execute(finalDataSource));
|
||||
new TransactionTemplate(txMgr, txAttr).executeWithoutResult(s -> populator.execute(finalDataSource));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user