spring-framework / org.springframework.test.web.servlet.request / MockMultipartHttpServletRequestBuilder / file

file

open fun file(name: String, content: ByteArray): MockMultipartHttpServletRequestBuilder

Create a new MockMultipartFile with the given content.

Parameters

name - the name of the file

content - the content of the file

open fun file(file: MockMultipartFile): MockMultipartHttpServletRequestBuilder

Add the given MockMultipartFile.

Parameters

file - the multipart file