File tree Expand file tree Collapse file tree 1 file changed +2
-19
lines changed
autojs/src/test/java/com/stardust/autojs Expand file tree Collapse file tree 1 file changed +2
-19
lines changed Original file line number Diff line number Diff line change @@ -25,23 +25,6 @@ public class ExampleUnitTest {
25
25
26
26
27
27
@ Test
28
- public void test () throws IOException {
29
- File file = new File ("C:\\ Users\\ Stardust\\ Desktop\\ 1.txt" );
30
- System .out .println (PFiles .read (file ));
31
- String url = "http://posttestserver.com/post.php?dir=example" ;
32
- OkHttpClient client = new OkHttpClient ();
33
- RequestBody formBody = new MultipartBody .Builder ()
34
- .setType (MultipartBody .FORM )
35
- .addFormDataPart ("file" , file .getName (),
36
- RequestBody .create (MediaType .parse ("text/plain" ), file ))
37
- .addFormDataPart ("other_field" , "other_field_value" )
38
- .build ();
39
- Request request = new Request .Builder ().url (url ).post (formBody ).build ();
40
- Response response = client .newCall (request ).execute ();
41
- System .out .println (response .body ().string ());
28
+ public void test () {
42
29
}
43
-
44
- public boolean equals (int i , int j ) {
45
- return i == j ;
46
- }
47
- }
30
+ }
You can’t perform that action at this time.
0 commit comments