This commit is contained in:
Looly
2023-04-24 12:20:29 +08:00
parent 26b99c7b08
commit ed6f52ebe3
6 changed files with 12 additions and 90 deletions

View File

@@ -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");
}

View File

@@ -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);
}
}