mirror of
https://gitee.com/dromara/hutool.git
synced 2025-04-05 17:37:59 +08:00
add test
This commit is contained in:
parent
08c8ef1be9
commit
6e662d7e6d
@ -9,7 +9,6 @@ import cn.hutool.core.io.resource.Resource;
|
||||
import cn.hutool.core.io.resource.ResourceUtil;
|
||||
import cn.hutool.core.io.unit.DataSizeUtil;
|
||||
import cn.hutool.core.lang.Assert;
|
||||
import cn.hutool.core.lang.Console;
|
||||
import cn.hutool.core.thread.ThreadUtil;
|
||||
import cn.hutool.core.util.*;
|
||||
|
||||
|
@ -99,4 +99,12 @@ public class URLUtilTest {
|
||||
String path = URLUtil.getPath(url);
|
||||
Assert.assertEquals("/search", path);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void issue3676Test() {
|
||||
String fileFullName = "/Uploads/20240601/aaaa.txt";
|
||||
final URI uri = URLUtil.toURI(fileFullName);
|
||||
final URI resolve = uri.resolve(".");
|
||||
Assert.assertEquals("/Uploads/20240601/", resolve.toString());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user