mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-08-18 20:38:02 +08:00
add test
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user