mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-08-18 20:38:02 +08:00
fix code
This commit is contained in:
@@ -490,4 +490,12 @@ public class FileUtilTest {
|
||||
Assert.assertEquals(10000000, totalLines);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void isAbsolutePathTest(){
|
||||
String path = "d:/test\\aaa.txt";
|
||||
Assert.assertTrue(FileUtil.isAbsolutePath(path));
|
||||
|
||||
path = "test\\aaa.txt";
|
||||
Assert.assertFalse(FileUtil.isAbsolutePath(path));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user