mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix bug
This commit is contained in:
@@ -23,9 +23,12 @@ import org.junit.jupiter.api.Assertions;
|
|||||||
import org.junit.jupiter.api.Disabled;
|
import org.junit.jupiter.api.Disabled;
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 配合SimpleServerTest测试
|
||||||
|
*/
|
||||||
public class IssueI85C9STest {
|
public class IssueI85C9STest {
|
||||||
|
|
||||||
private final ClientEngine engine = new HttpClient5Engine();
|
private final ClientEngine engine = new HttpClient5Engine();
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Disabled
|
@Disabled
|
||||||
@@ -33,7 +36,7 @@ public class IssueI85C9STest {
|
|||||||
|
|
||||||
final Response send = Request.of("http://localhost:8888/formTest")
|
final Response send = Request.of("http://localhost:8888/formTest")
|
||||||
.method(Method.GET)
|
.method(Method.GET)
|
||||||
.form(MapBuilder.of("a", (Object)1).put("b", 2).build())
|
.form(MapBuilder.of("a", (Object) 1).put("b", 2).build())
|
||||||
.send(engine);
|
.send(engine);
|
||||||
|
|
||||||
final String bodyStr = send.bodyStr();
|
final String bodyStr = send.bodyStr();
|
||||||
@@ -47,7 +50,7 @@ public class IssueI85C9STest {
|
|||||||
|
|
||||||
final Response send = Request.of("http://localhost:8888/formTest?c=3")
|
final Response send = Request.of("http://localhost:8888/formTest?c=3")
|
||||||
.method(Method.GET)
|
.method(Method.GET)
|
||||||
.form(MapBuilder.of("a", (Object)1).put("b", 2).build())
|
.form(MapBuilder.of("a", (Object) 1).put("b", 2).build())
|
||||||
.send(engine);
|
.send(engine);
|
||||||
|
|
||||||
Assertions.assertEquals("{a=[1], b=[2], c=[3]}", send.bodyStr());
|
Assertions.assertEquals("{a=[1], b=[2], c=[3]}", send.bodyStr());
|
||||||
|
Reference in New Issue
Block a user