multipart

fun MockMvc.multipart(urlTemplate: String, vararg vars: Any?, dsl: MockMultipartHttpServletRequestDsl.() -> Unit = {}): ResultActionsDsl
fun MockMvc.multipart(uri: URI, dsl: MockMultipartHttpServletRequestDsl.() -> Unit = {}): ResultActionsDsl

MockMvc extension providing access to MockMultipartHttpServletRequestDsl Kotlin DSL.

Author

Sebastien Deleuze

Since

5.2

See also

org.springframework.test.web.servlet.request.MockMvcRequestBuilders

fun MockMvc.multipart(httpMethod: HttpMethod, urlTemplate: String, vararg vars: Any?, dsl: MockMultipartHttpServletRequestDsl.() -> Unit = {}): ResultActionsDsl
fun MockMvc.multipart(httpMethod: HttpMethod, uri: URI, dsl: MockMultipartHttpServletRequestDsl.() -> Unit = {}): ResultActionsDsl

MockMvc extension providing access to MockMultipartHttpServletRequestDsl Kotlin DSL.

Author

Sebastien Deleuze

Since

5.3.26

See also

org.springframework.test.web.servlet.request.MockMvcRequestBuilders