Browse Source

Update ContentRequestMatchers#multipartData Javadoc

This commit updates ContentRequestMatchers#multipartData
Javadoc to mention Tomcat fork of Commons FileUpload library
instead of the original variant.

It also adds a similar note to
ContentRequestMatchers#multipartDataContains.

Closes gh-31988
pull/31991/head
Sébastien Deleuze 2 years ago
parent
commit
598c972a78
  1. 8
      spring-test/src/main/java/org/springframework/test/web/client/match/ContentRequestMatchers.java

8
spring-test/src/main/java/org/springframework/test/web/client/match/ContentRequestMatchers.java

@ -197,8 +197,9 @@ public class ContentRequestMatchers { @@ -197,8 +197,9 @@ public class ContentRequestMatchers {
* <li>{@link Resource} - content from a file
* <li>{@code byte[]} - other raw content
* </ul>
* <p><strong>Note:</strong> This method uses the Apache Commons FileUpload
* library to parse the multipart data and it must be on the test classpath.
* <p><strong>Note:</strong> This method uses the fork of Commons FileUpload library
* packaged with Apache Tomcat in the {@code org.apache.tomcat.util.http.fileupload}
* package to parse the multipart data and it must be on the test classpath.
* @param expectedMap the expected multipart values
* @since 5.3
*/
@ -209,6 +210,9 @@ public class ContentRequestMatchers { @@ -209,6 +210,9 @@ public class ContentRequestMatchers {
/**
* Variant of {@link #multipartData(MultiValueMap)} that does the same but
* only for a subset of the actual values.
* <p><strong>Note:</strong> This method uses the fork of Commons FileUpload library
* packaged with Apache Tomcat in the {@code org.apache.tomcat.util.http.fileupload}
* package to parse the multipart data and it must be on the test classpath.
* @param expectedMap the expected multipart values
* @since 5.3
*/

Loading…
Cancel
Save