mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
add test
This commit is contained in:
parent
6d2d57e34b
commit
01cb9bdd26
@ -1,10 +1,21 @@
|
|||||||
package cn.hutool.http;
|
package cn.hutool.http;
|
||||||
|
|
||||||
|
import cn.hutool.core.io.FileUtil;
|
||||||
|
import cn.hutool.core.lang.Console;
|
||||||
|
import org.junit.Ignore;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
public class Issue3314Test {
|
public class Issue3314Test {
|
||||||
@Test
|
@Test
|
||||||
|
@Ignore
|
||||||
public void postTest() {
|
public void postTest() {
|
||||||
String url = "https://hutool.cn/test/getList";
|
String url = "https://hutool.cn/test/getList";
|
||||||
|
final String body = HttpRequest.get(url)
|
||||||
|
.setRest(true)
|
||||||
|
.body(FileUtil.readBytes("d:/test/3314.xlsx"))
|
||||||
|
.execute()
|
||||||
|
.body();
|
||||||
|
|
||||||
|
Console.log(body);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user