This commit is contained in:
Looly 2024-07-04 21:37:23 +08:00
parent 7e7575c512
commit 5c86d4eced
2 changed files with 13 additions and 0 deletions

View File

@ -488,4 +488,10 @@ public class UrlBuilderTest {
final String build = httpUrl.build(CharsetUtil.CHARSET_UTF_8);
assertEquals("/a:1/b:1/c:1/d:1/", build);
}
@Test
public void issueIAAOC1Test() {
final UrlBuilder urlBuilder = UrlBuilder.ofHttp("http://localhost:9999/getReportDataList?goodsName=工业硫酸98%&conReportTypeId=1");
assertEquals("http://localhost:9999/getReportDataList?goodsName=%E5%B7%A5%E4%B8%9A%E7%A1%AB%E9%85%B898%25&conReportTypeId=1", urlBuilder.build());
}
}

View File

@ -261,6 +261,13 @@ public class HttpRequestTest {
.form("passport", "12456")
.execute();
Console.log(response.body());
}
@Test
@Ignore
public void issueIAAOC1Test() {
HttpGlobalConfig.setDecodeUrl(true);
HttpRequest request = HttpRequest.get("http://localhost:9999/qms/bus/qmsBusReportCenterData/getReportDataList?reportProcessNo=A00&goodsName=工业硫酸98%&conReportTypeId=1010100000000000007&measureDateStr=2024-07-01");
request.execute();
}
}