Skip to content

ServletTestExecutionListener is not enabled by default in abstract base test classes [SPR-11340] #15964

Closed
@spring-projects-issues

Description

@spring-projects-issues

Sam Brannen opened SPR-11340 and commented

Status Quo

The ServletTestExecutionListener was introduced in Spring Framework 3.2 and is enabled by default when using the TestContext framework without specifying custom listeners via @TestExecutionListeners. However, the ServletTestExecutionListener has not been added to the default set of listeners for Spring's abstract base test classes.

Deliverables

  1. Prepend ServletTestExecutionListener to the set of default listeners in AbstractJUnit4SpringContextTests.
  2. Prepend ServletTestExecutionListener to the set of default listeners in AbstractTestNGSpringContextTests.

Affects: 3.2 GA

Issue Links:

Backported to: 3.2.7

Metadata

Metadata

Assignees

Labels

in: testIssues in the test modulestatus: backportedAn issue that has been backported to maintenance branchestype: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions