mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
d4a5565340
Prior to this commit, the abstract base test classes for JUnit 4 and TestNG registered explicit sets of TestExecutionListeners. This configuration was useful in the early years of the Spring TestContext Framework. However, since the introduction of support for automatic registration of "default" listeners in Spring Framework 4.1, these predefined sets of TestExecutionListeners have become a hindrance to using Spring's testing support with default listeners from Spring portfolio projects (such as Spring Boot and Spring Security) as well as third-party or project-specific default listeners. To address this issue, the four abstract base test classes for JUnit 4 and TestNG no longer declare listeners via @TestExecutionListeners and instead now rely on registration of default listeners. Closes gh-29149