ServletTestExecutionListener breaks old code [SPR-11144] #15771
Labels
status: backported
An issue that has been backported to maintenance branches
type: bug
A general bug
Milestone
Aleksandr Dubinsky opened SPR-11144 and commented
The Javadoc for
ServletTestExecutionListener
says:However, this is not true. The
afterTestMethod()
method callsRequestContextHolder.resetRequestAttributes()
without checking for the presence of aWebApplicationContext
. This breaks old test code simply by upgrading to Spring 3.2, and it is difficult for a user to ascertain why.Issue Links:
Backported to: 3.2.6
The text was updated successfully, but these errors were encountered: