Skip to content

Commit 2d82c70

Browse files
authored
Remove Test Code
1 parent 23eb0df commit 2d82c70

File tree

1 file changed

+2
-19
lines changed

1 file changed

+2
-19
lines changed

autojs/src/test/java/com/stardust/autojs/ExampleUnitTest.java

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -25,23 +25,6 @@ public class ExampleUnitTest {
2525

2626

2727
@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() {
4229
}
43-
44-
public boolean equals(int i, int j) {
45-
return i == j;
46-
}
47-
}
30+
}

0 commit comments

Comments
 (0)