Fix checkstyle violations
This commit is contained in:
parent
41f40c6c22
commit
15321a3163
|
|
@ -107,11 +107,10 @@ public class ContentDispositionTests {
|
|||
@Test // gh-23077
|
||||
public void parseWithEscapedQuote() {
|
||||
|
||||
BiConsumer<String, String> tester = (description, filename) -> {
|
||||
BiConsumer<String, String> tester = (description, filename) ->
|
||||
assertThat(parse("form-data; name=\"file\"; filename=\"" + filename + "\"; size=123"))
|
||||
.as(description)
|
||||
.isEqualTo(builder("form-data").name("file").filename(filename).size(123L).build());
|
||||
};
|
||||
|
||||
tester.accept("Escaped quotes should be ignored",
|
||||
"\\\"The Twilight Zone\\\".txt");
|
||||
|
|
@ -223,10 +222,9 @@ public class ContentDispositionTests {
|
|||
@Test // gh-24220
|
||||
public void formatWithFilenameWithQuotes() {
|
||||
|
||||
BiConsumer<String, String> tester = (input, output) -> {
|
||||
BiConsumer<String, String> tester = (input, output) ->
|
||||
assertThat(builder("form-data").filename(input).build().toString())
|
||||
.isEqualTo("form-data; filename=\"" + output + "\"");
|
||||
};
|
||||
|
||||
String filename = "\"foo.txt";
|
||||
tester.accept(filename, "\\" + filename);
|
||||
|
|
|
|||
Loading…
Reference in New Issue