From 2d82c703292dd94397922f50f36558fe16ec24bf Mon Sep 17 00:00:00 2001 From: Stardust Date: Sun, 1 Dec 2019 20:21:58 +0800 Subject: [PATCH] Remove Test Code --- .../com/stardust/autojs/ExampleUnitTest.java | 21 ++----------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/autojs/src/test/java/com/stardust/autojs/ExampleUnitTest.java b/autojs/src/test/java/com/stardust/autojs/ExampleUnitTest.java index 7a4e3be7..936c62b3 100644 --- a/autojs/src/test/java/com/stardust/autojs/ExampleUnitTest.java +++ b/autojs/src/test/java/com/stardust/autojs/ExampleUnitTest.java @@ -25,23 +25,6 @@ public class ExampleUnitTest { @Test - public void test() throws IOException { - File file = new File("C:\\Users\\Stardust\\Desktop\\1.txt"); - System.out.println(PFiles.read(file)); - String url = "http://posttestserver.com/post.php?dir=example"; - OkHttpClient client = new OkHttpClient(); - RequestBody formBody = new MultipartBody.Builder() - .setType(MultipartBody.FORM) - .addFormDataPart("file", file.getName(), - RequestBody.create(MediaType.parse("text/plain"), file)) - .addFormDataPart("other_field", "other_field_value") - .build(); - Request request = new Request.Builder().url(url).post(formBody).build(); - Response response = client.newCall(request).execute(); - System.out.println(response.body().string()); + public void test() { } - - public boolean equals(int i, int j) { - return i == j; - } -} \ No newline at end of file +}