mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix code
This commit is contained in:
@@ -39,7 +39,7 @@ public class DownloadTest {
|
||||
@Disabled
|
||||
public void downloadSizeTest() {
|
||||
final String url = "https://res.t-io.org/im/upload/img/67/8948/1119501/88097554/74541310922/85/231910/366466 - 副本.jpg";
|
||||
ClientEngineFactory.get().send(Request.of(url)).body().write("e:/pic/366466.jpg");
|
||||
ClientEngineFactory.getEngine().send(Request.of(url)).body().write("e:/pic/366466.jpg");
|
||||
//HttpRequest.get(url).setSSLProtocol("TLSv1.2").executeAsync().body().write("e:/pic/366466.jpg");
|
||||
}
|
||||
|
||||
|
@@ -7,7 +7,7 @@ import org.junit.jupiter.api.Test;
|
||||
public class ClientEngineFactoryTest {
|
||||
@Test
|
||||
public void getTest() {
|
||||
final ClientEngine clientEngineFactory = ClientEngineFactory.get();
|
||||
final ClientEngine clientEngineFactory = ClientEngineFactory.getEngine();
|
||||
Assertions.assertNotNull(clientEngineFactory);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user