You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Xiao Liu (Jira)" <ji...@apache.org> on 2026/06/16 12:26:00 UTC
[jira] [Created] (HBASE-30227) Disallow JUnit4 Assert/Assume imports in source code
Xiao Liu created HBASE-30227:
--------------------------------
Summary: Disallow JUnit4 Assert/Assume imports in source code
Key: HBASE-30227
URL: https://issues.apache.org/jira/browse/HBASE-30227
Project: HBase
Issue Type: Improvement
Components: pom, test
Reporter: Xiao Liu
Assignee: Xiao Liu
Fix For: 2.7.0, 3.0.0-beta-2, 2.5.16, 2.6.7
HBASE-30200 removed JUnit4 dependencies and added dependency bans, but HBase source code can still accidentally import \{{org.junit.Assert}} because we keep a test-scope shim for third-party JUnit4-compatible utilities.
Add restrictImports rules to ban JUnit4 source imports such as \{{org.junit.Assert}}, \{{org.junit.Assume}}, and related JUnit4 packages, while keeping the shim available for compatibility.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)