-
Notifications
You must be signed in to change notification settings - Fork 38.9k
Log warning when default context configuration is ignored within test class hierarchies #36390
Copy link
Copy link
Closed
Labels
for: upgrade-attentionAn issue requiring extra attention when upgradingAn issue requiring extra attention when upgradingin: testIssues in the test moduleIssues in the test moduletype: enhancementA general enhancementA general enhancement
Milestone
Description
Overview
In Spring Framework 7.1, the TestContext Framework will reliably detect all implicit default context configuration within the type hierarchy or enclosing class hierarchy (for @Nested test classes) above a given test class.
However, test suites may encounter failures once we make that switch in behavior (see #31456 (comment)).
In order to help development teams prepare for the switch in 7.1, we should log a warning whenever we detect default context configuration that is currently ignored.
We should be able to use the new
resolveDefaultContextConfigurationAttributes() method that was introduced in
ContextLoaderUtils in commit 4ae471d to perform such detection.
Related Issues
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
for: upgrade-attentionAn issue requiring extra attention when upgradingAn issue requiring extra attention when upgradingin: testIssues in the test moduleIssues in the test moduletype: enhancementA general enhancementA general enhancement