mirror of
https://github.com/slhaf/Partner.git
synced 2026-05-14 17:53:05 +08:00
chore(test): organize experimental tests and test resources
This commit is contained in:
17
Partner-Main/src/test/java/experimental/NetTest.java
Normal file
17
Partner-Main/src/test/java/experimental/NetTest.java
Normal file
@@ -0,0 +1,17 @@
|
||||
package experimental;
|
||||
|
||||
import cn.hutool.http.HttpRequest;
|
||||
import cn.hutool.http.HttpResponse;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
public class NetTest {
|
||||
@Test
|
||||
void httpTest() {
|
||||
HttpRequest request = HttpRequest.get("slhaf.work");
|
||||
request.setConnectionTimeout(2);
|
||||
request.setReadTimeout(2);
|
||||
HttpResponse execute = request.execute();
|
||||
System.out.println(execute.toString());
|
||||
execute.close();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user