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)