From 5528e375076fef9246fcc1bdb83fbe99c25b47e1 Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 15 Feb 2016 16:56:55 -0200 Subject: [PATCH] PR code review --- src/test/java/org/takes/rq/RqMultipartTest.java | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/src/test/java/org/takes/rq/RqMultipartTest.java b/src/test/java/org/takes/rq/RqMultipartTest.java index d20eadfee..b679a1a40 100644 --- a/src/test/java/org/takes/rq/RqMultipartTest.java +++ b/src/test/java/org/takes/rq/RqMultipartTest.java @@ -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\"" ); /** @@ -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--" @@ -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) );