spring-framework / org.springframework.test.context.transaction / TestContextTransactionUtils / createDelegatingTransactionAttribute

createDelegatingTransactionAttribute

open static fun createDelegatingTransactionAttribute(testContext: TestContext, targetAttribute: TransactionAttribute): TransactionAttribute

Create a delegating TransactionAttribute for the supplied target TransactionAttribute and TestContext, using the names of the test class and test method to build the name of the transaction.

Parameters

testContext - the TestContext upon which to base the name; never null

targetAttribute - the TransactionAttribute to delegate to; never null

Return
the delegating TransactionAttribute