Skip to content

Core: Make util test classes and methods package-private#15919

Open
ZephyrYWZhou wants to merge 1 commit intoapache:mainfrom
ZephyrYWZhou:core-package-private-util-tests
Open

Core: Make util test classes and methods package-private#15919
ZephyrYWZhou wants to merge 1 commit intoapache:mainfrom
ZephyrYWZhou:core-package-private-util-tests

Conversation

@ZephyrYWZhou
Copy link
Copy Markdown

What

Update test classes and methods under core/src/test/.../util/ to use package-private visibility by removing unnecessary public modifiers.

Why

JUnit 5 does not require test classes or methods to be public, and the project convention recommends package-private visibility unless broader access is required. These 25 test files in the core util package still used public visibility and were updated to align with the convention.

Notes

  • FakeTicker remains public because it is referenced by test classes in other packages (hadoop, rest).
  • Methods in inner classes implementing interfaces (e.g., in TestLockManagers) remain public as required by the interface contract.

JUnit 5 does not require test classes or methods to be public.
Update test classes in core util package to use package-private
visibility, consistent with project conventions.
@github-actions github-actions bot added the core label Apr 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant