mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-19 03:01:48 +08:00
fix test
This commit is contained in:
parent
6a0777c945
commit
2f88648cc9
@ -63,9 +63,11 @@ public class FileUtilTest {
|
||||
final String parseSmbPath = FileUtil.getAbsolutePath(smbPath);
|
||||
assertEquals(smbPath, parseSmbPath);
|
||||
assertTrue(FileUtil.isAbsolutePath(smbPath));
|
||||
Console.log(Paths.get(smbPath));
|
||||
Console.log(Paths.get(smbPath).isAbsolute());
|
||||
assertTrue(Paths.get(smbPath).isAbsolute());
|
||||
if(FileUtil.isWindows()){
|
||||
// 在Windows下`\`路径是绝对路径,也表示SMB路径
|
||||
// 但是在Linux下,`\`表示转义字符,并不被识别为路径
|
||||
assertTrue(Paths.get(smbPath).isAbsolute());
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
|
Loading…
x
Reference in New Issue
Block a user