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
This commit is contained in:
Sébastien Deleuze 2024-01-09 14:12:09 +01:00
parent 2593b60f2b
commit 598c972a78
1 changed files with 6 additions and 2 deletions

View File

@ -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
*/ */