Skip to content

Support @Rollback at the class level [SPR-13276] #17867

@spring-projects-issues

Description

@spring-projects-issues

Sam Brannen opened SPR-13276 and commented

@Rollback is currently supported on test methods, with class-level rollback settings configured via @TransactionConfiguration.

Allowing @Rollback to be declared on test classes with method-level declarations overriding class-level declarations would prove more intuitive than having to declare @TransactionConfiguration and @Rollback. Furthermore, the transactionManager flag in @TransactionConfiguration was made superfluous many years ago with the introduction of support for a qualifier in @Transactional (which is also supported by the TestContext framework).

See also: #17868


Issue Links:

Referenced from: commits 3f8b512, c4bbc9d

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions