As the title says, if you use @DataJpaTest test slice, and expect an TransactionExecutionListener to be used at runtime, it won't work as the mentioned auto configuration class is not included within the test slice.
I can workaround it using
import org.springframework.boot.autoconfigure.ImportAutoConfiguration;
import org.springframework.boot.autoconfigure.transaction.TransactionManagerCustomizationAutoConfiguration;
@ImportAutoConfiguration({
TransactionManagerCustomizationAutoConfiguration.class
})
Would be nice if it was handled by the slice itself.
As the title says, if you use
@DataJpaTesttest slice, and expect anTransactionExecutionListenerto be used at runtime, it won't work as the mentioned auto configuration class is not included within the test slice.I can workaround it using
Would be nice if it was handled by the slice itself.