@@ -335,7 +335,7 @@ public MockHttpServletRequestBuilder sessionAttr(String name, Object value) {
335
335
* @param sessionAttributes the session attributes
336
336
*/
337
337
public MockHttpServletRequestBuilder sessionAttrs (Map <String , Object > sessionAttributes ) {
338
- Assert .notEmpty (sessionAttributes , "'sessionAttrs ' must not be empty" );
338
+ Assert .notEmpty (sessionAttributes , "'sessionAttributes ' must not be empty" );
339
339
for (String name : sessionAttributes .keySet ()) {
340
340
sessionAttr (name , sessionAttributes .get (name ));
341
341
}
@@ -357,7 +357,7 @@ public MockHttpServletRequestBuilder flashAttr(String name, Object value) {
357
357
* @param flashAttributes the flash attributes
358
358
*/
359
359
public MockHttpServletRequestBuilder flashAttrs (Map <String , Object > flashAttributes ) {
360
- Assert .notEmpty (flashAttributes , "'flashAttrs ' must not be empty" );
360
+ Assert .notEmpty (flashAttributes , "'flashAttributes ' must not be empty" );
361
361
for (String name : flashAttributes .keySet ()) {
362
362
flashAttr (name , flashAttributes .get (name ));
363
363
}
@@ -708,7 +708,8 @@ private void addRequestParams(MockHttpServletRequest request, MultiValueMap<Stri
708
708
}
709
709
710
710
private MultiValueMap <String , String > parseFormData (final MediaType mediaType ) {
711
- MultiValueMap <String , String > map ;HttpInputMessage message = new HttpInputMessage () {
711
+ MultiValueMap <String , String > map ;
712
+ HttpInputMessage message = new HttpInputMessage () {
712
713
@ Override
713
714
public InputStream getBody () throws IOException {
714
715
return new ByteArrayInputStream (content );
@@ -725,7 +726,7 @@ public HttpHeaders getHeaders() {
725
726
map = new FormHttpMessageConverter ().read (null , message );
726
727
}
727
728
catch (IOException ex ) {
728
- throw new IllegalStateException ("Failed to parse form data in request body: " , ex );
729
+ throw new IllegalStateException ("Failed to parse form data in request body" , ex );
729
730
}
730
731
return map ;
731
732
}
0 commit comments