mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
add test
This commit is contained in:
24
hutool-http/src/test/java/cn/hutool/http/IssueI5WAV4Test.java
Executable file
24
hutool-http/src/test/java/cn/hutool/http/IssueI5WAV4Test.java
Executable file
@@ -0,0 +1,24 @@
|
||||
package cn.hutool.http;
|
||||
|
||||
import cn.hutool.json.JSONUtil;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
public class IssueI5WAV4Test {
|
||||
|
||||
@Test
|
||||
@Ignore
|
||||
public void getTest(){
|
||||
//测试代码
|
||||
final Map<String, Object> map = new HashMap<>();
|
||||
map.put("taskID", 370);
|
||||
map.put("flightID", 2879);
|
||||
|
||||
|
||||
final String body = HttpRequest.get("http://localhost:8884/api/test/testHttpUtilGetWithBody").body(JSONUtil.toJsonStr(map)).execute().body();
|
||||
System.out.println("使用hutool返回结果:" + body);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user