This commit is contained in:
Looly
2025-11-06 16:55:26 +08:00
parent 50072cd4e7
commit 1204a0033e

View File

@@ -3,9 +3,7 @@ package cn.hutool.v7.core.io.file;
import cn.hutool.v7.core.io.IORuntimeException;
import org.junit.jupiter.api.Test;
import java.util.List;
import static org.junit.jupiter.api.Assertions.*;
import static org.junit.jupiter.api.Assertions.assertThrows;
public class Issue4121Test {
@Test
@@ -15,14 +13,4 @@ public class Issue4121Test {
});
}
@Test
void testListFileNames_RelativePath() {
// 测试相对路径相对于classpath
List<String> result = FileUtil.listFileNames("META-INF");
assertTrue(result.contains("MANIFEST.MF"));
assertTrue(result.contains("LICENSE-notice.md"));
assertTrue(result.contains("LICENSE.md"));
}
}