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-31989

(Backport of 598c972a78)
pull/32145/head
Sébastien Deleuze 2 years ago
parent
commit
23eff5c650
  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 {
* <li>{@link Resource} - content from a file * <li>{@link Resource} - content from a file
* <li>{@code byte[]} - other raw content * <li>{@code byte[]} - other raw content
* </ul> * </ul>
* <p><strong>Note:</strong> This method uses the Apache Commons FileUpload * <p><strong>Note:</strong> This method uses the fork of Commons FileUpload library
* library to parse the multipart data and it must be on the test classpath. * 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 * @param expectedMap the expected multipart values
* @since 5.3 * @since 5.3
*/ */
@ -209,6 +210,9 @@ public class ContentRequestMatchers {
/** /**
* Variant of {@link #multipartData(MultiValueMap)} that does the same but * Variant of {@link #multipartData(MultiValueMap)} that does the same but
* only for a subset of the actual values. * 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 * @param expectedMap the expected multipart values
* @since 5.3 * @since 5.3
*/ */

Loading…
Cancel
Save