From a722f9c36aaffb88b12c6371225ace8105da8d6a Mon Sep 17 00:00:00 2001 From: Ma Zhengxuan <1319614897@qq.com> Date: Mon, 19 Oct 2026 23:51:43 +0800 Subject: [PATCH] HBASE-30452 Fix shaded testing util JAR test for clean test (addendum) --- .../apache/hbase/shaded/TestShadedTestingUtilJarContents.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hbase-shaded/hbase-shaded-testing-util-tester/src/test/java/org/apache/hbase/shaded/TestShadedTestingUtilJarContents.java b/hbase-shaded/hbase-shaded-testing-util-tester/src/test/java/org/apache/hbase/shaded/TestShadedTestingUtilJarContents.java index c17fb6faade8..14aaa7cd8452 100644 --- a/hbase-shaded/hbase-shaded-testing-util-tester/src/test/java/org/apache/hbase/shaded/TestShadedTestingUtilJarContents.java +++ b/hbase-shaded/hbase-shaded-testing-util-tester/src/test/java/org/apache/hbase/shaded/TestShadedTestingUtilJarContents.java @@ -19,6 +19,7 @@ import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertNull; +import static org.junit.jupiter.api.Assumptions.assumeFalse; import java.io.File; import java.util.jar.JarEntry; @@ -37,6 +38,7 @@ public class TestShadedTestingUtilJarContents { public void testNoBundledJUnitLibraries() throws Exception { File path = new File(HBaseTestingUtil.class.getProtectionDomain().getCodeSource().getLocation().toURI()); + assumeFalse(path.isDirectory(), "Shaded JAR contents can only be checked after packaging"); try (JarFile jar = new JarFile(path)) { JarEntry unexpectedEntry = jar.stream().filter(entry -> { String name = entry.getName();