Skip to content

Commit f09c786

Browse files
committed
Polishing
1 parent e6e3ca3 commit f09c786

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

spring-test/src/main/java/org/springframework/test/web/servlet/request/MockHttpServletRequestBuilder.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ public MockHttpServletRequestBuilder sessionAttr(String name, Object value) {
335335
* @param sessionAttributes the session attributes
336336
*/
337337
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");
339339
for (String name : sessionAttributes.keySet()) {
340340
sessionAttr(name, sessionAttributes.get(name));
341341
}
@@ -357,7 +357,7 @@ public MockHttpServletRequestBuilder flashAttr(String name, Object value) {
357357
* @param flashAttributes the flash attributes
358358
*/
359359
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");
361361
for (String name : flashAttributes.keySet()) {
362362
flashAttr(name, flashAttributes.get(name));
363363
}
@@ -708,7 +708,8 @@ private void addRequestParams(MockHttpServletRequest request, MultiValueMap<Stri
708708
}
709709

710710
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() {
712713
@Override
713714
public InputStream getBody() throws IOException {
714715
return new ByteArrayInputStream(content);
@@ -725,7 +726,7 @@ public HttpHeaders getHeaders() {
725726
map = new FormHttpMessageConverter().read(null, message);
726727
}
727728
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);
729730
}
730731
return map;
731732
}

src/asciidoc/testing.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3433,7 +3433,7 @@ for the various `executeSqlScript(..)` methods for further details.
34333433

34343434

34353435
[[testcontext-executing-sql-declaratively]]
3436-
===== Executing SQL scripts declaratively with `@Sql`
3436+
===== Executing SQL scripts declaratively with @Sql
34373437

34383438
In addition to the aforementioned mechanisms for executing SQL scripts
34393439
_programmatically_, SQL scripts can also be configured _declaratively_ in the Spring

0 commit comments

Comments
 (0)