Skip to content

Commit

Permalink
PR code review
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown authored and unknown committed Feb 15, 2016
1 parent 44e201d commit 5528e37
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions src/test/java/org/takes/rq/RqMultipartTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,7 @@ public final class RqMultipartTest {
* Content disposition plus form data.
*/
private static final String CONTENT = String.format(
"%s: %s",
RqMultipartTest.DISPOSITION,
"form-data; name=\"%s\""
"%s: %s", RqMultipartTest.DISPOSITION,"form-data; name=\"%s\""
);

/**
Expand Down Expand Up @@ -330,10 +328,7 @@ public void returnsCorrectPartLength() throws IOException {
final String body =
Joiner.on(RqMultipartTest.CRLF).join(
"--zzz",
String.format(
RqMultipartTest.CONTENT,
part
),
String.format(RqMultipartTest.CONTENT, part),
"",
StringUtils.repeat("X", length),
"--zzz--"
Expand Down Expand Up @@ -446,10 +441,7 @@ public void handlesRequestInTime() throws IOException {
"POST /post?u=3 HTTP/1.1",
"Host: example.com",
"Content-Type: multipart/form-data; boundary=zzz",
String.format(
"Content-Length:%s",
file.length()
)
String.format("Content-Length:%s",file.length())
),
new TempInputStream(new FileInputStream(file), file)
);
Expand Down

0 comments on commit 5528e37

Please sign in to comment.