-
Notifications
You must be signed in to change notification settings - Fork 38.6k
Closed
Labels
status: backportedAn issue that has been backported to maintenance branchesAn issue that has been backported to maintenance branchestype: bugA general bugA general bug
Milestone
Description
Aleksandr Dubinsky opened SPR-11144 and commented
The Javadoc for ServletTestExecutionListener
says:
Note that
ServletTestExecutionListener
is enabled by default but takes no action if theApplicationContext
loaded for the current test is not aWebApplicationContext
.
However, this is not true. The afterTestMethod()
method calls RequestContextHolder.resetRequestAttributes()
without checking for the presence of a WebApplicationContext
. This breaks old test code simply by upgrading to Spring 3.2, and it is difficult for a user to ascertain why.
Issue Links:
- Servlet mocks are not reinjected into test instance between TestNG test methods [SPR-11626] #16249 Servlet mocks are not reinjected into test instance between TestNG test methods
Backported to: 3.2.6
Metadata
Metadata
Assignees
Labels
status: backportedAn issue that has been backported to maintenance branchesAn issue that has been backported to maintenance branchestype: bugA general bugA general bug