mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix code
This commit is contained in:
@@ -3,14 +3,13 @@ package cn.hutool.http.client;
|
||||
import cn.hutool.core.lang.Console;
|
||||
import cn.hutool.http.client.engine.httpclient4.HttpClient4Engine;
|
||||
import cn.hutool.http.meta.Method;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
||||
public class HttpClient4EngineTest {
|
||||
|
||||
@SuppressWarnings("resource")
|
||||
@Test
|
||||
@Ignore
|
||||
//@Ignore
|
||||
public void getTest() {
|
||||
final ClientEngine engine = new HttpClient4Engine();
|
||||
|
||||
|
@@ -1,8 +1,8 @@
|
||||
package cn.hutool.http.client;
|
||||
|
||||
import cn.hutool.core.lang.Console;
|
||||
import cn.hutool.http.meta.Method;
|
||||
import cn.hutool.http.client.engine.httpclient5.HttpClient5Engine;
|
||||
import cn.hutool.http.meta.Method;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
||||
@@ -18,6 +18,6 @@ public class HttpClient5EngineTest {
|
||||
final Response res = engine.send(req);
|
||||
|
||||
Console.log(res.getStatus());
|
||||
Console.log(res.body());
|
||||
Console.log(res.bodyStr());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user