mirror of
https://gitee.com/dromara/hutool.git
synced 2025-11-24 08:33:22 +08:00
fix test
This commit is contained in:
@@ -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"));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user