mirror of
https://gitee.com/dromara/hutool.git
synced 2025-04-05 17:37:59 +08:00
add test
This commit is contained in:
parent
6d2d57e34b
commit
01cb9bdd26
@ -1,10 +1,21 @@
|
||||
package cn.hutool.http;
|
||||
|
||||
import cn.hutool.core.io.FileUtil;
|
||||
import cn.hutool.core.lang.Console;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
||||
public class Issue3314Test {
|
||||
@Test
|
||||
@Ignore
|
||||
public void postTest() {
|
||||
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…
Reference in New Issue
Block a user