Skip to content

test: remove unnecessary public modifiers from JUnit 6 tests (#23870) (CP: 25.1)#23928

Open
mcollovati wants to merge 1 commit into25.1from
cherry/cherrypick-23870-to-25.1
Open

test: remove unnecessary public modifiers from JUnit 6 tests (#23870) (CP: 25.1)#23928
mcollovati wants to merge 1 commit into25.1from
cherry/cherrypick-23870-to-25.1

Conversation

@mcollovati
Copy link
Collaborator

JUnit Jupiter does not require public visibility on test classes or methods. Remove public from test class declarations and annotated test/lifecycle methods across all modules except flow-tests.

Classes referenced across packages retain public visibility.

@github-actions
Copy link

github-actions bot commented Mar 18, 2026

Test Results

 1 386 files  ±0   1 386 suites  ±0   1h 25m 42s ⏱️ -24s
 9 911 tests ±0   9 840 ✅ ±0  71 💤 ±0  0 ❌ ±0 
10 384 runs  ±0  10 304 ✅ ±0  80 💤 ±0  0 ❌ ±0 

Results for commit cdd6989. ± Comparison against base commit 5fefeb1.

♻️ This comment has been updated with latest results.

Artur-
Artur- previously approved these changes Mar 20, 2026
JUnit Jupiter does not require public visibility on test classes or
methods. Remove public from test class declarations and annotated
test/lifecycle methods across all modules except flow-tests.

Classes referenced across packages retain public visibility.
@sonarqubecloud
Copy link

@mcollovati mcollovati requested a review from Artur- March 20, 2026 13:37
@mcollovati mcollovati enabled auto-merge (squash) March 20, 2026 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants