Skip to content

Replace "shameless coverage code" in SecurityNamespaceHandlerTests with meaningful tests #17689

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

seongm1n
Copy link

Removes "shameless class coverage stats boosting" code that created
meaningless anonymous class instances just to increase coverage metrics.

Replaces with proper tests that validate BeanIds and Elements constants
are accessible and not empty.

Changes:

  • Removed shameless coverage comment and anonymous class instantiations
  • Added meaningful constant validation tests
  • Improved test quality while maintaining coverage

Replace meaningless anonymous class instantiations with proper
validation tests for BeanIds and Elements constants.

Signed-off-by: seongm1n <[email protected]>
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Aug 12, 2025
@jzheaux jzheaux self-assigned this Aug 13, 2025
@jzheaux jzheaux added in: config An issue in spring-security-config type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels Aug 13, 2025
@jzheaux jzheaux changed the title Remove shameless coverage code from SecurityNamespaceHandlerTests Replace "shameless coverage code" in SecurityNamespaceHandlerTests with meaningful tests Aug 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: config An issue in spring-security-config type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants