This commit is contained in:
Looly
2022-08-27 01:06:01 +08:00
parent d815af53de
commit 282d6245a4
2 changed files with 13 additions and 2 deletions

View File

@@ -470,4 +470,13 @@ public class UrlBuilderTest {
Assert.assertEquals("127.0.0.1:8080", builder.getAuthority());
}
@Test
public void addPathTest(){
//https://gitee.com/dromara/hutool/issues/I5O4ML
UrlBuilder.of().addPath("");
UrlBuilder.of().addPath("/");
UrlBuilder.of().addPath("//");
UrlBuilder.of().addPath("//a");
}
}