Skip to content

Commit 23eff5c

Browse files
committed
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 598c972)
1 parent c44bb29 commit 23eff5c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,9 @@ private RequestMatcher formData(MultiValueMap<String, String> expectedMap, boole
197197
* <li>{@link Resource} - content from a file
198198
* <li>{@code byte[]} - other raw content
199199
* </ul>
200-
* <p><strong>Note:</strong> This method uses the Apache Commons FileUpload
201-
* library to parse the multipart data and it must be on the test classpath.
200+
* <p><strong>Note:</strong> This method uses the fork of Commons FileUpload library
201+
* packaged with Apache Tomcat in the {@code org.apache.tomcat.util.http.fileupload}
202+
* package to parse the multipart data and it must be on the test classpath.
202203
* @param expectedMap the expected multipart values
203204
* @since 5.3
204205
*/
@@ -209,6 +210,9 @@ public RequestMatcher multipartData(MultiValueMap<String, ?> expectedMap) {
209210
/**
210211
* Variant of {@link #multipartData(MultiValueMap)} that does the same but
211212
* only for a subset of the actual values.
213+
* <p><strong>Note:</strong> This method uses the fork of Commons FileUpload library
214+
* packaged with Apache Tomcat in the {@code org.apache.tomcat.util.http.fileupload}
215+
* package to parse the multipart data and it must be on the test classpath.
212216
* @param expectedMap the expected multipart values
213217
* @since 5.3
214218
*/

0 commit comments

Comments
 (0)