Skip to content

RestDocumentationRequestBuilders' methods for multipart file uploads are not aligned with MockMvc's MockMvcRequestBuilders #770

Closed
@marcgemis

Description

@marcgemis

The documentation under https://docs.spring.io/spring-restdocs/docs/2.0.5.RELEASE/reference/html5/#documenting-your-api-request-parts for MockMvc has
this.mockMvc.perform(multipart("/upload").file("file", "example".getBytes()))

I think this should be
this.mockMvc.perform(fileUpload("/upload").file("file", "example".getBytes()))

as fileUpload is defined in RestDocumentationRequestBuilders and multipart in MockMvcRequestBuilders

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions