mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-12-08 01:59:14 +08:00
fix test
This commit is contained in:
parent
50072cd4e7
commit
1204a0033e
@ -3,9 +3,7 @@ package cn.hutool.v7.core.io.file;
|
|||||||
import cn.hutool.v7.core.io.IORuntimeException;
|
import cn.hutool.v7.core.io.IORuntimeException;
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
import java.util.List;
|
import static org.junit.jupiter.api.Assertions.assertThrows;
|
||||||
|
|
||||||
import static org.junit.jupiter.api.Assertions.*;
|
|
||||||
|
|
||||||
public class Issue4121Test {
|
public class Issue4121Test {
|
||||||
@Test
|
@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"));
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user