File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,8 +29,8 @@ public void whenUploadFileUsingOkHttp_thenCorrect() throws IOException {
2929
3030 RequestBody requestBody = new MultipartBody .Builder ()
3131 .setType (MultipartBody .FORM )
32- .addFormDataPart ("file" , "file.ext " ,
33- RequestBody .create (MediaType .parse ("image/png " ), new File ("src/test/resources/test.in " )))
32+ .addFormDataPart ("file" , "file.txt " ,
33+ RequestBody .create (MediaType .parse ("application/octet-stream " ), new File ("src/test/resources/test.txt " )))
3434 .build ();
3535
3636 Request request = new Request .Builder ()
@@ -51,8 +51,8 @@ public void whenGetUploadFileProgressUsingOkHttp_thenCorrect() throws IOExceptio
5151
5252 RequestBody requestBody = new MultipartBody .Builder ()
5353 .setType (MultipartBody .FORM )
54- .addFormDataPart ("file" , "file.ext " ,
55- RequestBody .create (MediaType .parse ("image/png " ), new File ("src/test/resources/test.in " )))
54+ .addFormDataPart ("file" , "file.txt " ,
55+ RequestBody .create (MediaType .parse ("application/octet-stream " ), new File ("src/test/resources/test.txt " )))
5656 .build ();
5757
5858
Original file line number Diff line number Diff line change @@ -92,8 +92,8 @@ public void whenSendMultipartRequestUsingOkHttp_thenCorrect() throws IOException
9292 .setType (MultipartBody .FORM )
9393 .addFormDataPart ("username" , "test" )
9494 .addFormDataPart ("password" , "test" )
95- .addFormDataPart ("file" , "file.ext " ,
96- RequestBody .create (MediaType .parse ("image/png " ), new File ("src/test/resources/test.in " )))
95+ .addFormDataPart ("file" , "file.txt " ,
96+ RequestBody .create (MediaType .parse ("application/octet-stream " ), new File ("src/test/resources/test.txt " )))
9797 .build ();
9898
9999 Request request = new Request .Builder ()
File renamed without changes.
You can’t perform that action at this time.
0 commit comments