Polishing

This commit is contained in:
Juergen Hoeller
2016-08-30 12:59:40 +02:00
parent b19d3fc0e1
commit 2aab08f093
2 changed files with 10 additions and 5 deletions

View File

@@ -108,6 +108,7 @@ public class RequestPartServletServerHttpRequestTests {
return headers;
}
};
byte[] bytes = {(byte) 0xC4};
mockRequest.setParameter("part", new String(bytes, StandardCharsets.ISO_8859_1));
ServerHttpRequest request = new RequestPartServletServerHttpRequest(mockRequest, "part");
@@ -125,6 +126,7 @@ public class RequestPartServletServerHttpRequestTests {
return headers;
}
};
byte[] bytes = {(byte) 0xC4};
mockRequest.setParameter("part", new String(bytes, StandardCharsets.ISO_8859_1));
mockRequest.setCharacterEncoding("iso-8859-1");