Support Servlet Part in Spring MVC Test

Issue: SPR-14253
This commit is contained in:
Rossen Stoyanchev
2017-01-25 17:04:25 -05:00
parent c8f98ecd8d
commit eabd8a2964
4 changed files with 104 additions and 16 deletions

View File

@@ -3986,7 +3986,7 @@ request but rather you have to set it up:
[source,java,indent=0]
[subs="verbatim,quotes"]
----
mockMvc.perform(fileUpload("/doc").file("a1", "ABC".getBytes("UTF-8")));
mockMvc.perform(multipart("/doc").file("a1", "ABC".getBytes("UTF-8")));
----
You can specify query parameters in URI template style: