Status Quo
Propagation.NOT_SUPPORTED
can be used to disable test-managed transactions via the @Transactional
annotation as documented in the Javadoc and reference manual, but Propagation.NEVER
does not have the same effect even though users might assume it would (see https://github.com/spring-projects/spring-boot/issues/23630#issuecomment-707694364).
Deliverables
- [x] Support
Propagation.NEVER
for disabling test-managed transactions - [x] Document in the Javadoc for
TransactionalTestExecutionListener
- [x] Document in the reference manual
Comment From: sbrannen
Pushed https://github.com/sbrannen/spring-framework/commit/47b25ebfedaca1301dbf4ee60b387470993af02f to a feature branch awaiting the release of 5.3 RC2.