You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by li...@apache.org on 2026/06/18 10:30:58 UTC
(hbase) branch branch-2.6 updated: HBASE-30227 Disallow JUnit4 imports in source code (#8362) (#8374)
This is an automated email from the ASF dual-hosted git repository.
liuxiaocs7 pushed a commit to branch branch-2.6
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/branch-2.6 by this push:
new b60816441bf HBASE-30227 Disallow JUnit4 imports in source code (#8362) (#8374)
b60816441bf is described below
commit b60816441bfb6bdae9f9f12038128072f319e970
Author: Xiao Liu <li...@apache.org>
AuthorDate: Thu Jun 18 17:47:26 2026 +0800
HBASE-30227 Disallow JUnit4 imports in source code (#8362) (#8374)
Signed-off-by: Wellington Chevreuil <wc...@apache.org>
Signed-off-by: Duo Zhang <zh...@apache.org>
Signed-off-by: Peng Lu <lu...@apache.org>
(cherry picked from commit f1023e6b830307f027a042b9ff995c8b227955ba)
---
pom.xml | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/pom.xml b/pom.xml
index 741c1209a5c..b34ab856ec2 100644
--- a/pom.xml
+++ b/pom.xml
@@ -2450,7 +2450,14 @@
<reason>Use junit5 instead</reason>
<bannedImports>
<bannedImport>junit.framework.**</bannedImport>
+ <bannedImport>org.junit.**</bannedImport>
+ <bannedImport>static org.junit.Assert.**</bannedImport>
+ <bannedImport>static org.junit.Assume.**</bannedImport>
</bannedImports>
+ <allowedImports>
+ <allowedImport>org.junit.jupiter.**</allowedImport>
+ <allowedImport>org.junit.platform.**</allowedImport>
+ </allowedImports>
</restrictImports>
</rules>
</configuration>